Lines Matching refs:base
46 ddi_strtoul(const char *str, char **nptr, int base, unsigned long *result)
49 strtoul(const char *str, char **nptr, int base)
62 if (base < 0 || base > MBASE || base == 1) {
63 /* base is invalid -- should be a fatal error */
82 if (base == 0)
84 base = 10;
86 base = 16;
88 base = 8;
90 * for any base > 10, the digits incrementally following
93 if (!lisalnum(c) || (xx = DIGIT(c)) >= base) {
101 if (base == 16 && c == '0' && (ustr[1] == 'x' || ustr[1] == 'X') &&
105 multmax = ULONG_MAX / (unsigned long)base;
107 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; ) {
110 val *= base;
126 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; (c = *++ustr))