Lines Matching +full:10 +full:base
1 /* $OpenBSD: strtoll.c,v 1.6 2005/11/10 10:00:17 espie Exp $ */
50 strtoll(const char *nptr, char **endptr, int base) in strtoll() argument
59 * If base is 0, allow 0x for hex and 0 for octal, else in strtoll()
60 * assume decimal; if base is already 16, allow 0x. in strtoll()
74 if ((base == 0 || base == 16) && in strtoll()
78 base = 16; in strtoll()
80 if (base == 0) in strtoll()
81 base = c == '0' ? 8 : 10; in strtoll()
86 * base. An input number that is greater than this value, if in strtoll()
91 * [-9223372036854775808..9223372036854775807] and the input base in strtoll()
92 * is 10, cutoff will be set to 922337203685477580 and cutlim to in strtoll()
102 cutlim = cutoff % base; in strtoll()
103 cutoff /= base; in strtoll()
106 cutlim -= base; in strtoll()
115 c -= isupper(c) ? 'A' - 10 : 'a' - 10; in strtoll()
118 if (c >= base) in strtoll()
129 acc *= base; in strtoll()
139 acc *= base; in strtoll()