musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/putc.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年06月04日 16:09:36 -0400
committerRich Felker <dalias@aerifal.cx>2013年06月04日 16:09:36 -0400
commitf18846dd3a048598676e10b2a7b9f931bb3d1d6a (patch)
tree55582d95c77451bfdb0a63e936be144109fca256 /src/stdio/putc.c
parenta6d272127bb6a2eb09dc182cc39c49e77310ade4 (diff)
downloadmusl-f18846dd3a048598676e10b2a7b9f931bb3d1d6a.tar.gz
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 'src/stdio/putc.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 22:07:24 +0000

AltStyle によって変換されたページ (->オリジナル) /