Home | History | Annotate | Download | only in dos

Lines Matching refs:nptr

24 uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n)
30 while (n && isspace((unsigned char)*nptr)) {
31 nptr++;
36 if (n && *nptr == '-') {
38 nptr++;
40 } else if (n && *nptr == '+') {
41 nptr++;
45 if (n >= 2 && nptr[0] == '0' && (nptr[1] == 'x' || nptr[1] == 'X')) {
47 nptr += 2;
49 } else if (n >= 1 && nptr[0] == '0') {
51 nptr++;
57 if (n >= 2 && nptr[0] == '0' && (nptr[1] == 'x' || nptr[1] == 'X')) {
59 nptr += 2;
63 while (n && (d = digitval(*nptr)) >= 0 && d < base) {
66 nptr++;
70 *endptr = (char *)nptr;