Lines Matching refs:base
85 long strtol(const char *nptr, char **endptr, int base);
86 unsigned long strtoul(const char *nptr, char **endptr, int base);
87 quad_t strtoq(const char *nptr, char **endptr, int base);
88 u_quad_t strtouq(const char *nptr, char **endptr, int base);
125 strtol(const char *nptr, char **endptr, int base) in strtol() argument
147 if ((base == 0 || base == 16) && in strtol()
151 base = 16; in strtol()
152 } else if ((base == 0 || base == 2) && in strtol()
156 base = 2; in strtol()
158 if (base == 0) { in strtol()
159 base = c == '0' ? 8 : 10; in strtol()
180 cutlim = ((int)(cutoff % (unsigned long)base)); in strtol()
181 cutoff /= (unsigned long)base; in strtol()
190 if (c >= base) { in strtol()
197 acc *= base; in strtol()
218 strtoul(const char *nptr, char **endptr, int base) in strtoul() argument
238 if ((base == 0 || base == 16) && in strtoul()
242 base = 16; in strtoul()
243 } else if ((base == 0 || base == 2) && in strtoul()
247 base = 2; in strtoul()
249 if (base == 0) { in strtoul()
250 base = c == '0' ? 8 : 10; in strtoul()
252 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base; in strtoul()
253 cutlim = ((int)((unsigned long)ULONG_MAX % (unsigned long)base)); in strtoul()
262 if (c >= base) { in strtoul()
269 acc *= base; in strtoul()
297 strtoq(const char *nptr, char **endptr, int base) in strtoq() argument
323 if ((base == 0 || base == 16) && in strtoq()
327 base = 16; in strtoq()
329 if (base == 0) { in strtoq()
330 base = c == '0' ? 8 : 10; in strtoq()
351 qbase = (unsigned)base; in strtoq()
363 if (c >= base) { in strtoq()
401 int base) in strtouq() argument
425 if ((base == 0 || base == 16) && in strtouq()
429 base = 16; in strtouq()
431 if (base == 0) { in strtouq()
432 base = c == '0' ? 8 : 10; in strtouq()
434 qbase = (unsigned)base; in strtouq()
445 if (c >= base) { in strtouq()