Lines Matching refs:cp
80 static unsigned int simple_guess_base(const char *cp) in simple_guess_base() argument
82 if (cp[0] == '0') { in simple_guess_base()
83 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2])) in simple_guess_base()
99 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument
104 base = simple_guess_base(cp); in simple_strtoull()
106 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x') in simple_strtoull()
107 cp += 2; in simple_strtoull()
109 while (isxdigit(*cp)) { in simple_strtoull()
112 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; in simple_strtoull()
116 cp++; in simple_strtoull()
119 *endp = (char *)cp; in simple_strtoull()