From: Paul Eggert Date: Thu, 3 Oct 2024 23:03:26 +0000 (-0700) Subject: Mention WG14 N3322 in manual X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=668a622c6bb1a702d327072200925c45eb5df647;p=gnulib.git Mention WG14 N3322 in manual --- 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