summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoull.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 <stdlib.h> so that calls go direct and the symbols not in theguenther2015-09-131-2/+3
| | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
* Make sure that the following functions return 0 and EINVAL asschwarze2014-09-131-4/+11
| | | | | | | | | | 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@
* Switch libc and libm to use strong aliases rather than weak aliasesmartynas2013-03-281-11/+2
| | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* ansi + de-registerpat2005-03-301-9/+3
| | | | ok otto deraadt
* Fix typo that breaks compilation #ifndef __weak_alias; Francois Perradmillert2005-03-021-2/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Replace strtou?q() with the more standard strtou?ll(), using weakmillert2002-06-291-0/+128
aliases to fake up strtou?q(). espie@ OK.