nas_ue_task: add support for multiple UE

This commit is contained in:
Frédéric Leroy
2017-01-25 13:29:10 +01:00
parent 8bc36c3b96
commit b43c6cbfdd
5 changed files with 78 additions and 11 deletions
+13
View File
@@ -72,3 +72,16 @@ void hex_string_to_hex_value (uint8_t *hex_value, const char *hex_string, int si
hex_value[i] = (hex_char_to_hex_value(hex_string[2 * i]) << 4) | hex_char_to_hex_value(hex_string[2 * i + 1]);
}
}
char *itoa(int i) {
char buffer[64];
int ret;
ret = snprintf(buffer, sizeof(buffer), "%d",i);
if ( ret <= 0 ) {
return NULL;
}
return strdup(buffer);
}