Lines Matching refs:p_s
43 int16_t utl_str2int(const char* p_s) { in utl_str2int() argument
46 for (; *p_s == ' ' && *p_s != 0; p_s++) in utl_str2int()
49 if (*p_s == 0) return -1; in utl_str2int()
52 if ((*p_s < '0') || (*p_s > '9')) return -1; in utl_str2int()
54 val += (int32_t)(*p_s++ - '0'); in utl_str2int()
58 if (*p_s == 0) { in utl_str2int()
79 int utl_strucmp(const char* p_s, const char* p_t) { in utl_strucmp() argument
82 while (*p_s && *p_t) { in utl_strucmp()
87 if (*p_s++ != c) { in utl_strucmp()
92 if (*p_t == 0 && *p_s != 0) { in utl_strucmp()
113 uint8_t utl_itoa(uint16_t i, char* p_s) { in utl_itoa() argument
115 char* p = p_s; in utl_itoa()
132 return (uint8_t)(p - p_s); in utl_itoa()
223 bool utl_isintstr(const char* p_s) { in utl_isintstr() argument
226 for (i = 0; p_s[i] != 0; i++) { in utl_isintstr()
227 if (((p_s[i] < '0') || (p_s[i] > '9')) && (p_s[i] != ';')) return false; in utl_isintstr()
261 bool utl_isdialstr(const char* p_s) { in utl_isdialstr() argument
262 for (uint16_t i = 0; p_s[i] != 0; i++) { in utl_isdialstr()
264 if (!(utl_isdialchar(p_s[i]) || (p_s[i] == '-'))) return false; in utl_isdialstr()