libosmogsm
0.9.6.20171026
Osmocom GSM library
|
Utility function implementations related to 3GPP TS 23.003. More...
Functions | |
static bool | is_n_digits (const char *str, int min_digits, int max_digits) |
bool | osmo_imsi_str_valid (const char *imsi) |
Determine whether the given IMSI is valid according to 3GPP TS 23.003. More... | |
bool | osmo_msisdn_str_valid (const char *msisdn) |
Determine whether the given MSISDN is valid according to 3GPP TS 23.003. More... | |
Utility function implementations related to 3GPP TS 23.003.
|
static |
References len.
Referenced by osmo_imsi_str_valid(), and osmo_msisdn_str_valid().
bool osmo_imsi_str_valid | ( | const char * | imsi | ) |
Determine whether the given IMSI is valid according to 3GPP TS 23.003.
imsi | IMSI digits in ASCII string representation. |
References GSM23003_IMSI_MAX_DIGITS, GSM23003_IMSI_MIN_DIGITS, and is_n_digits().
bool osmo_msisdn_str_valid | ( | const char * | msisdn | ) |
Determine whether the given MSISDN is valid according to 3GPP TS 23.003.
msisdn | MSISDN digits in ASCII string representation. |
References is_n_digits().