summaryrefslogtreecommitdiff
path: root/src/stdio/__scanf.c
AgeCommit message (Collapse)AuthorLines
2012-03-13fix scanf handling of "0" (followed by immediate EOF) with "%x"Rich Felker-11/+6
other cases with %x were probably broken too. I would actually like to go ahead and replace this code in scanf with calls to the new __intparse framework, but for now this calls for a quick and unobtrusive fix without the risk of breaking other things.
2011-04-25fix 2 eof-related bugs in scanfRich Felker-3/+4
1. failed match of literal chars from the format string would always return matching failure rather than input failure at eof, leading to infinite loops in some programs. 2. unread of eof would wrongly adjust the character counts reported by %n, yielding an off-by-one error.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+487