MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / isNumeric

Function isNumeric

SIP/SIPMessage.cpp:314–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static bool isNumeric(const char *str)
315{
316 for ( ; *str; str++) { if (!isdigit(*str)) return false; }
317 return true;
318}
319
320// Validate the IMSI string "IMSI"+digits; return pointer to digits or NULL if invalid.
321const char* extractIMSI(const char *IMSI)

Callers 1

extractIMSIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected