From cdbf8229bb1438998b211e4760a97d94a13674d4 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 28 Sep 2023 17:27:58 +0000 Subject: 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. --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') 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] -- cgit 1.4.1