Lines Matching refs:base
50 ddi_strtol(const char *str, char **nptr, int base, long *result)
53 strtol(const char *str, char **nptr, int base)
67 if (base < 0 || base > MBASE || base == 1) {
68 /* base is invalid -- should be a fatal error */
87 if (base == 0)
89 base = 10;
91 base = 16;
93 base = 8;
95 * for any base > 10, the digits incrementally following
98 if (!lisalnum(c) || (xx = DIGIT(c)) >= base) {
107 if (base == 16 && c == '0' && (ustr[1] == 'x' || ustr[1] == 'X') &&
116 multmin = limit / (long)base;
118 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; ) {
122 val *= base;
138 for (c = *++ustr; lisalnum(c) && (xx = DIGIT(c)) < base; (c = *++ustr))