UE/API/USIM: move hex functions to common/utils.c

This commit is contained in:
Frédéric Leroy
2017-01-25 13:29:10 +01:00
parent 9af3599153
commit 45fccb0203
4 changed files with 63 additions and 54 deletions
+6
View File
@@ -1,9 +1,15 @@
#ifndef _UTILS_H
#define _UTILS_H
#include <stdint.h>
#include <sys/types.h>
void *calloc_or_fail(size_t size);
void *malloc_or_fail(size_t size);
// Converts an hexadecimal ASCII coded digit into its value. **
uint8_t hex_char_to_hex_value (char c);
// Converts an hexadecimal ASCII coded string into its value.**
void hex_string_to_hex_value (uint8_t *hex_value, const char *hex_string, int size);
#endif