Lines Matching refs:base
11 static const char *_parse_integer_fixup_radix(const char *s, unsigned int *base) in _parse_integer_fixup_radix() argument
13 if (*base == 0) in _parse_integer_fixup_radix()
18 *base = 16; in _parse_integer_fixup_radix()
20 *base = 8; in _parse_integer_fixup_radix()
23 *base = 10; in _parse_integer_fixup_radix()
25 if (*base == 16 && s[0] == '0' && tolower(s[1]) == 'x') in _parse_integer_fixup_radix()
31 unsigned int base) in simple_strtoul() argument
36 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul()
39 ? toupper(*cp) : *cp)-'A'+10) < base) in simple_strtoul()
41 result = result*base + value; in simple_strtoul()
51 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) in strict_strtoul() argument
62 val = simple_strtoul(cp, &tail, base); in strict_strtoul()
76 long simple_strtol(const char *cp, char **endp, unsigned int base) in simple_strtol() argument
79 return -simple_strtoul(cp + 1, endp, base); in simple_strtol()
81 return simple_strtoul(cp, endp, base); in simple_strtol()