[Cx] LIR/LIA is added (#921)

This commit is contained in:
Sukchan Lee 2021-04-07 21:46:05 +09:00
parent d3eaaff430
commit 26066bb0ca
21 changed files with 1063 additions and 315 deletions

View file

@ -234,11 +234,12 @@ uint64_t ogs_uint64_from_string(char *str)
void ogs_extract_digit_from_string(char *digit, char *string)
{
bool extracting = false;
int i = 0;
ogs_assert(string);
ogs_assert(digit);
while (*string) {
while (*string && i < OGS_MAX_IMSI_BCD_LEN) {
if (*string >= '0' && *string <= '9') {
*digit++ = *string;
extracting = true;
@ -246,6 +247,7 @@ void ogs_extract_digit_from_string(char *digit, char *string)
break;
}
string++;
i++;
}
*digit = 0;