Home | History | Annotate | Download | only in lib

Lines Matching refs:base

244 /* Convert NPTR to an `unsigned long int' or `long int' in base BASE.
245 If BASE is 0 the base is determined by the presence of a leading
247 If BASE is < 2 or > 36, it is reset to 10.
253 int base, int group LOCALE_PARAM_PROTO)
295 if (base < 0 || base == 1 || base > 36)
323 /* Recognize number prefix and if BASE is zero, figure it out ourselves. */
326 if ((base == 0 || base == 16) && TOUPPER (s[1]) == L_('X'))
329 base = 16;
331 else if (base == 0)
332 base = 8;
334 else if (base == 0)
335 base = 10;
348 && (!ISALPHA (c) || (int) (TOUPPER (c) - L_('A') + 10) >= base))
359 cutoff = STRTOL_ULONG_MAX / (unsigned LONG int) base;
360 cutlim = STRTOL_ULONG_MAX % (unsigned LONG int) base;
374 if ((int) c >= base)
381 i *= (unsigned LONG int) base;
419 /* We must handle a special case here: the base is 0 or 16 and the
445 int base LOCALE_PARAM_PROTO)
447 return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM);