From 668a622c6bb1a702d327072200925c45eb5df647 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 3 Oct 2024 16:03:26 -0700 Subject: [PATCH] Mention WG14 N3322 in manual --- doc/gnulib-readme.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/gnulib-readme.texi b/doc/gnulib-readme.texi index eafb3a0b01..876a495103 100644 --- a/doc/gnulib-readme.texi +++ b/doc/gnulib-readme.texi @@ -547,6 +547,11 @@ hosts. @item Adding zero to a null pointer does not change the pointer. For example, @code{0 + (char *) NULL == (char *) NULL}. +Similarly, subtracting zero does not change a null pointer, +and subtracting two null pointers results in zero. +A future C standard is planned to require this behavior; see +``@url{https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3322.pdf, +Allow zero length operations on null pointers}'', WG14 N3322 (2024-08-28). @end itemize @end itemize -- 2.39.5