about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2023-03-14 16:58:35 +0000
committerJoseph Myers <joseph@codesourcery.com>2023-03-14 16:58:35 +0000
commit2d4728e60621c8844ec679291aa5458c622d8f4f (patch)
tree67fc945e60ec333a3c423ee634e5f5d242402824 /manual
parent447273e0bf22a3d42e05e6b16d309f3f89879bea (diff)
downloadglibc-2d4728e60621c8844ec679291aa5458c622d8f4f.tar.gz
glibc-2d4728e60621c8844ec679291aa5458c622d8f4f.tar.xz
glibc-2d4728e60621c8844ec679291aa5458c622d8f4f.zip
Update printf %b/%B C2x support
WG14 recently accepted two additions to the printf/scanf %b/%B
support: there are now PRIb* and SCNb* macros in <inttypes.h>, and
printf %B is now an optional feature defined in normative text,
instead of recommended practice, with corresponding PRIB* macros that
can also be used to test whether that optional feature is supported.
See N3072 items 14 and 15 for details (those changes were accepted,
some other changes in that paper weren't).

Add the corresponding PRI* macros to glibc and update one place in the
manual referring to %B as recommended.  (SCNb* should naturally be
added at the same time as the corresponding scanf %b support.)

Tested for x86_64 and x86.
Diffstat (limited to 'manual')
-rw-r--r--manual/stdio.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/stdio.texi b/manual/stdio.texi
index e86aa5933b..c502a21036 100644
--- a/manual/stdio.texi
+++ b/manual/stdio.texi
@@ -1829,7 +1829,7 @@ output, but are different when used with @code{scanf} for input
 Print an integer as an unsigned binary number.  @samp{%b} uses
 lower-case @samp{b} with the @samp{#} flag and @samp{%B} uses
 upper-case.  @samp{%b} is an ISO C2X feature; @samp{%B} is an
-extension recommended by ISO C2X.  @xref{Integer Conversions}, for
+optional ISO C2X feature.  @xref{Integer Conversions}, for
 details.
 
 @item @samp{%o}