4 #define UVLONG_MAX (1LL<<63)
7 strtoull(char *nptr, char **endptr, int base)
11 int c, ovfl, v, neg, ndig;
38 if(*p == '-' || *p == '+')
49 if(p[1] == 'x' || p[1] == 'X'){
55 if(base == 16 && *p == '0') {
56 if(p[1] == 'x' || p[1] == 'X')
59 if(base < 0 || 36 < base)
63 * Non-empty sequence of digits
69 if('0' <= c && c <= '9')
72 if('a' <= c && c <= 'z')
75 if('A' <= c && c <= 'Z')