MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / strno2int

Function strno2int

ut.h:802–810  ·  view source on GitHub ↗

* Convert a str (base 10 or 16) into integer */

Source from the content-addressed store, hash-verified

800 * Convert a str (base 10 or 16) into integer
801 */
802static inline int strno2int(const str *val, unsigned int *mask )
803{
804 /* hexa or decimal*/
805 if (val->len>2 && val->s[0]=='0' && val->s[1]=='x') {
806 return hexstr2int( val->s+2, val->len-2, mask);
807 } else {
808 return str2int( val, mask);
809 }
810}
811
812
813/*

Callers 5

mi_set_gflagFunction · 0.85
mi_reset_gflagFunction · 0.85
mi_is_gflagFunction · 0.85
get_app_indexFunction · 0.85
sca_logic_notifyFunction · 0.85

Calls 2

hexstr2intFunction · 0.85
str2intFunction · 0.85

Tested by

no test coverage detected