diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-04-16 16:03:45 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-04-16 16:03:45 -0400 |
commit | 18efeb320b763e541a7dbf61a7da1cbe13ab2be9 (patch) | |
tree | f8eb42a87b9c07ad8d9de0380356af3541b425aa /src/internal/stdio_impl.h | |
parent | cc762434d91a2f441a1d2f44962ab1d4854b607b (diff) | |
download | musl-18efeb320b763e541a7dbf61a7da1cbe13ab2be9.tar.gz musl-18efeb320b763e541a7dbf61a7da1cbe13ab2be9.tar.bz2 musl-18efeb320b763e541a7dbf61a7da1cbe13ab2be9.tar.xz musl-18efeb320b763e541a7dbf61a7da1cbe13ab2be9.zip |
new scanf implementation and corresponding integer parser/converter
advantages over the old code:
- correct results for floating point (old code was bogus)
- wide/regular scanf separated so scanf does not pull in wide code
- well-defined behavior on integers that overflow dest type
- support for %[a-b] ranges with %[ (impl-defined by widely used)
- no intermediate conversion of fmt string to wide string
- cleaner, easier to share code with strto* functions
- better standards conformance for corner cases
the old code remains in the source tree, as the wide versions of the
scanf-family functions are still using it. it will be removed when no
longer needed.
Diffstat (limited to 'src/internal/stdio_impl.h')
-rw-r--r-- | src/internal/stdio_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/stdio_impl.h b/src/internal/stdio_impl.h index 5ec296f3..af7aacc8 100644 --- a/src/internal/stdio_impl.h +++ b/src/internal/stdio_impl.h @@ -69,6 +69,8 @@ size_t __stdout_write(FILE *, const unsigned char *, size_t); off_t __stdio_seek(FILE *, off_t, int); int __stdio_close(FILE *); +size_t __string_read(FILE *, unsigned char *, size_t); + int __toread(FILE *); int __towrite(FILE *); |