summaryrefslogtreecommitdiff
path: root/src/stdlib/wcstol.c
AgeCommit message (Collapse)AuthorFilesLines
2012-09-06use restrict everywhere it's required by c99 and/or posix 2008Rich Felker1-6/+6
to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict.
2012-04-19further fixes to leading space issue (forgot the wide versions)Rich Felker1-2/+4
2012-04-16avoid hitting eof in wcstolRich Felker1-2/+3
shunget cannot unget eof status, causing wcstol to leave endptr pointing to the wrong place when scanning, for example, L"0x". cheap fix is to make the read function provide an infinite stream of bogus characters rather than eof. really this is something of a design flaw in how the shgetc system is used for strto* and wcsto*; in the long term, I believe multi-character unget should be scrapped and replaced with a function that can subtract from the f->shcnt counter.
2012-04-16use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc.Rich Felker1-14/+71
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker1-0/+18