summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoimax.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The 0x (or 0X) prefix in base 16 is optional so only skip over themillert2017-07-061-3/+3
| | | | | | prefix if the character following it is a valid hex char. The C99 standard is clear that given the string "0xy" zero should be returned and endptr set to point to the "x". OK deraadt@ espie@
* Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go directguenther2015-09-121-1/+2
| | | | and the symbols not in the C standard are weak
* Make sure that the following functions return 0 and EINVAL asschwarze2014-09-131-3/+13
| | | | | | | | | | 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@
* Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()millert2006-01-131-0/+140