Base 36 is allowed.

This commit is contained in:
Bill Fenner 2001-11-28 02:35:35 +00:00
parent 00def12b2b
commit b9004c1158
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=87023
4 changed files with 4 additions and 4 deletions

View file

@ -87,7 +87,7 @@ strtol(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
if (base < 2 || base > 35)
if (base < 2 || base > 36)
goto noconv;
/*

View file

@ -86,7 +86,7 @@ strtoll(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
if (base < 2 || base > 35)
if (base < 2 || base > 36)
goto noconv;
/*

View file

@ -84,7 +84,7 @@ strtoul(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
if (base < 2 || base > 35)
if (base < 2 || base > 36)
goto noconv;
cutoff = ULONG_MAX / base;

View file

@ -84,7 +84,7 @@ strtoull(nptr, endptr, base)
if (base == 0)
base = c == '0' ? 8 : 10;
acc = any = 0;
if (base < 2 || base > 35)
if (base < 2 || base > 36)
goto noconv;
cutoff = ULLONG_MAX / base;