summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoul.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-1/+2
| | | | | | 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-2/+9
| | | | | | | | | | 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 some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-171-2/+2
| | | | silence some warnings.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* ansi + de-registerpat2005-03-301-9/+6
| | | | ok otto deraadt
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Fix RCS idstholo1996-08-191-2/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* be very careful in case of signed charsderaadt1996-07-271-3/+3
|
* from netbsd; Rearrange to avoid sign problems with GCC.deraadt1995-12-211-17/+22
|
* initial import of NetBSD treederaadt1995-10-181-0/+108