summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoul.3
diff options
context:
space:
mode:
authorschwarze <>2014-09-13 20:10:12 +0000
committerschwarze <>2014-09-13 20:10:12 +0000
commit231db4657473247f753eff3dda736712538c9fd7 (patch)
treeccfd3c6e1313069066f96d0ac6a84b0d3540704b /src/lib/libc/stdlib/strtoul.3
parentb7268ee743cd942f45105664ec1245058b7346d6 (diff)
downloadopenbsd-231db4657473247f753eff3dda736712538c9fd7.tar.gz
openbsd-231db4657473247f753eff3dda736712538c9fd7.tar.bz2
openbsd-231db4657473247f753eff3dda736712538c9fd7.zip
Make sure that the following functions return 0 and EINVAL as
required by the C standard when called with an invalid base: strtoll(), strtoimax(), strtoul(), strtoull(), and strtoumax(). Same behaviour for strtoq() and strtouq() even though not standardized. No functional change in strtol(), it was the only one already correct. While here, simplify the conditional expression for checking the base and sync whitespace and comments among the six files. ok millert@
Diffstat (limited to 'src/lib/libc/stdlib/strtoul.3')
0 files changed, 0 insertions, 0 deletions