Lines Matching defs:base
116 strtol(const char *nptr, char **endptr, int base)
126 * If base is 0, allow 0x for hex and 0 for octal, else
127 * assume decimal; if base is already 16, allow 0x.
137 if ((base == 0 || base == 16) &&
141 base = 16;
142 } else if ((base == 0 || base == 2) &&
146 base = 2;
148 if (base == 0)
149 base = c == '0' ? 8 : 10;
154 * base. An input number that is greater than this value, if
159 * [-2147483648..2147483647] and the input base is 10,
169 cutlim = cutoff % (unsigned long)base;
170 cutoff /= (unsigned long)base;
178 if (c >= base)
184 acc *= base;
199 strtoul(const char *nptr, char **endptr, int base)
218 if ((base == 0 || base == 16) &&
222 base = 16;
223 } else if ((base == 0 || base == 2) &&
227 base = 2;
229 if (base == 0)
230 base = c == '0' ? 8 : 10;
231 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
232 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
240 if (c >= base)
246 acc *= base;
267 strtoq(const char *nptr, char **endptr, int base)
277 * If base is 0, allow 0x for hex and 0 for octal, else
278 * assume decimal; if base is already 16, allow 0x.
292 if ((base == 0 || base == 16) &&
296 base = 16;
298 if (base == 0)
299 base = c == '0' ? 8 : 10;
304 * base. An input number that is greater than this value, if
309 * [-9223372036854775808..9223372036854775807] and the input base
319 qbase = (unsigned)base;
330 if (c >= base)
360 register int base)
383 if ((base == 0 || base == 16) &&
387 base = 16;
389 if (base == 0)
390 base = c == '0' ? 8 : 10;
391 qbase = (unsigned)base;
401 if (c >= base)