Lines Matching defs:cp
71 static unsigned int simple_guess_base(const char *cp)
73 if (cp[0] == '0') {
74 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2]))
85 * @cp: The start of the string
90 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base)
95 base = simple_guess_base(cp);
97 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x')
98 cp += 2;
100 while (isxdigit(*cp)) {
103 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10;
107 cp++;
110 *endp = (char *)cp;