diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-06-04 16:09:36 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-06-04 16:09:36 -0400 |
commit | f18846dd3a048598676e10b2a7b9f931bb3d1d6a (patch) | |
tree | 55582d95c77451bfdb0a63e936be144109fca256 /WHATSNEW | |
parent | a6d272127bb6a2eb09dc182cc39c49e77310ade4 (diff) | |
download | musl-f18846dd3a048598676e10b2a7b9f931bb3d1d6a.tar.gz musl-f18846dd3a048598676e10b2a7b9f931bb3d1d6a.tar.xz musl-f18846dd3a048598676e10b2a7b9f931bb3d1d6a.zip |
refactor scanf core to use common code path for all string formats
the concept here is that %s and %c are essentially special-cases of %[, with some minimal additional special-casing. aside from simplifying the code and reducing the number of complex code-paths that would need changing to make optimizations later, the main purpose of this change is to simplify addition of the 'm' modifier which causes scanf to allocate storage for the string being read.
Diffstat (limited to 'WHATSNEW')
0 files changed, 0 insertions, 0 deletions