about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2023-09-28 17:27:58 +0000
committerJoseph Myers <joseph@codesourcery.com>2023-09-28 17:28:15 +0000
commitcdbf8229bb1438998b211e4760a97d94a13674d4 (patch)
treec3253d92a5c54051f664dcee3c64372df858f741 /manual
parentaea4ddb87168d0475777e605f3bb576b0f62b3a2 (diff)
downloadglibc-cdbf8229bb1438998b211e4760a97d94a13674d4.tar.gz
glibc-cdbf8229bb1438998b211e4760a97d94a13674d4.tar.xz
glibc-cdbf8229bb1438998b211e4760a97d94a13674d4.zip
C2x scanf %wN, %wfN support
ISO C2x defines scanf length modifiers wN (for intN_t / int_leastN_t /
uintN_t / uint_leastN_t) and wfN (for int_fastN_t / uint_fastN_t).
Add support for those length modifiers, similar to the printf support
previously added.

Tested for x86_64 and x86.
Diffstat (limited to 'manual')
-rw-r--r--manual/stdio.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index 9cf622403f..002fce7a10 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -3714,6 +3714,20 @@ Specifies that the argument is a @code{ptrdiff_t *}.
 
 This modifier was introduced in @w{ISO C99}.
 
+@item w@var{n}
+Specifies that the argument is an @code{int@var{n}_t *} or
+@code{int_least@var{n}_t *} (which are the same type), or
+@code{uint@var{n}_t *} or @code{uint_least@var{n}_t *} (which are the
+same type).
+
+This modifier was introduced in @w{ISO C2X}.
+
+@item wf@var{n}
+Specifies that the argument is an @code{int_fast@var{n}_t *} or
+@code{uint_fast@var{n}_t *}.
+
+This modifier was introduced in @w{ISO C2X}.
+
 @item z
 Specifies that the argument is a @code{size_t *}.