Lines Matching defs: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);
127 strtol(const char *nptr, char **endptr, int base)
137 * If base is 0, allow 0x for hex and 0 for octal, else
138 * assume decimal; if base is already 16, allow 0x.
148 if ((base == 0 || base == 16) &&
152 base = 16;
153 } else if ((base == 0 || base == 2) &&
157 base = 2;
159 if (base == 0)
160 base = c == '0' ? 8 : 10;
165 * base. An input number that is greater than this value, if
170 * [-2147483648..2147483647] and the input base is 10,
180 cutlim = cutoff % (unsigned long)base;
181 cutoff /= (unsigned long)base;
189 if (c >= base)
195 acc *= base;
219 strtoul(const char *nptr, char **endptr, int base)
238 if ((base == 0 || base == 16) &&
242 base = 16;
243 } else if ((base == 0 || base == 2) &&
247 base = 2;
249 if (base == 0)
250 base = c == '0' ? 8 : 10;
251 cutoff = (unsigned long)ULONG_MAX / (unsigned long)base;
252 cutlim = (unsigned long)ULONG_MAX % (unsigned long)base;
260 if (c >= base)
266 acc *= base;
297 strtoq(const char *nptr, char **endptr, int base)
307 * If base is 0, allow 0x for hex and 0 for octal, else
308 * assume decimal; if base is already 16, allow 0x.
322 if ((base == 0 || base == 16) &&
326 base = 16;
328 if (base == 0)
329 base = c == '0' ? 8 : 10;
334 * base. An input number that is greater than this value, if
339 * [-9223372036854775808..9223372036854775807] and the input base
349 qbase = (unsigned)base;
360 if (c >= base)
400 register int base)
423 if ((base == 0 || base == 16) &&
427 base = 16;
429 if (base == 0)
430 base = c == '0' ? 8 : 10;
431 qbase = (unsigned)base;
441 if (c >= base)