Lines Matching refs:cp

33 unsigned long simple_strtoul(const char *cp, char **endp,  in simple_strtoul()  argument
39 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul()
41 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp-'0' : (islower(*cp) in simple_strtoul()
42 ? toupper(*cp) : *cp)-'A'+10) < base) { in simple_strtoul()
44 cp++; in simple_strtoul()
48 *endp = (char *)cp; in simple_strtoul()
53 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) in strict_strtoul() argument
60 len = strlen(cp); in strict_strtoul()
64 val = simple_strtoul(cp, &tail, base); in strict_strtoul()
65 if (tail == cp) in strict_strtoul()
69 ((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) { in strict_strtoul()
77 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument
79 if (*cp == '-') in simple_strtol()
80 return -simple_strtoul(cp + 1, endp, base); in simple_strtol()
82 return simple_strtoul(cp, endp, base); in simple_strtol()
85 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base) in ustrtoul() argument
87 unsigned long result = simple_strtoul(cp, endp, base); in ustrtoul()
106 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base) in ustrtoull() argument
108 unsigned long long result = simple_strtoull(cp, endp, base); in ustrtoull()
127 unsigned long long simple_strtoull(const char *cp, char **endp, in simple_strtoull() argument
132 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoull()
134 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp - '0' in simple_strtoull()
135 : (islower(*cp) ? toupper(*cp) : *cp) - 'A' + 10) < base) { in simple_strtoull()
137 cp++; in simple_strtoull()
141 *endp = (char *) cp; in simple_strtoull()