Deleted Added
full compact
33c33
< * $FreeBSD: head/lib/libc/stdlib/strtoul.c 82995 2001-09-04 17:41:20Z ache $
---
> * $FreeBSD: head/lib/libc/stdlib/strtoul.c 87016 2001-11-28 00:48:11Z ache $
55c55
< register int base;
---
> int base;
57,61c57,61
< register const char *s;
< register unsigned long acc;
< register unsigned char c;
< register unsigned long cutoff;
< register int neg, any, cutlim;
---
> const char *s;
> unsigned long acc;
> unsigned char c;
> unsigned long cutoff;
> int neg, any, cutlim;
87c87
< if (base < 2 || base > 36)
---
> if (base < 2)
93,97c93,95
< if (!isascii(c))
< break;
< if (isdigit(c))
< c -= '0';
< else if (isalpha(c))
---
> if (isxdigit(c))
> c = digittoint(c);
> else if (isascii(c) && isalpha(c))