about summary refs log tree commit diff
path: root/NEWS
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 /NEWS
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 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 5b7b327b29..a94650da64 100644
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,13 @@ Major new features:
   the process ID associated with the process file descriptor created by
   pid_spawn, fork_np, or pidfd_open.
 
+* scanf-family functions now support the wN format length modifiers for
+  arguments pointing to types intN_t, int_leastN_t, uintN_t or
+  uint_leastN_t (for example, %w32d to read int32_t or int_least32_t in
+  decimal, or %w32x to read uint32_t or uint_least32_t in hexadecimal)
+  and the wfN format length modifiers for arguments pointing to types
+  int_fastN_t or uint_fastN_t, as specified in draft ISO C2X.
+
 Deprecated and removed features, and other changes affecting compatibility:
 
   [Add deprecations, removals and changes affecting compatibility here]