diff options
author | Joseph Myers <joseph@codesourcery.com> | 2023-09-28 17:27:58 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2023-09-28 17:28:15 +0000 |
commit | cdbf8229bb1438998b211e4760a97d94a13674d4 (patch) | |
tree | c3253d92a5c54051f664dcee3c64372df858f741 /manual | |
parent | aea4ddb87168d0475777e605f3bb576b0f62b3a2 (diff) | |
download | glibc-cdbf8229bb1438998b211e4760a97d94a13674d4.tar glibc-cdbf8229bb1438998b211e4760a97d94a13674d4.tar.gz glibc-cdbf8229bb1438998b211e4760a97d94a13674d4.tar.bz2 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.texi | 14 |
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 *}. |