]> Savannah Git Hosting - gnulib.git/commitdiff
xstrtol: improve xstrtol.h comment
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Jul 2024 00:00:13 +0000 (17:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Jul 2024 00:01:49 +0000 (17:01 -0700)
lib/xstrtol.h

index 10b48cac4eca711dddac470a6df6de3deeda56f2..1fab74881096e0d0c79bdb8e0e4140b47896e694 100644 (file)
@@ -54,7 +54,9 @@ typedef enum strtol_error strtol_error;
      includes '0' they can be followed by "B" to stand for the usual
      SI powers of 1000 (or by "iB" to stand for powers of 1024 as before).
      Other supported suffixes include 'K' for 1024 or 1000, 'b' for 512,
-     'c' for 1, and 'w' for 2.  */
+     'c' for 1, and 'w' for 2.
+   - Suppose that after the initial whitespace, the number is missing
+     but there is a valid suffix.  Then the number is treated as 1.  */
 
 #define _DECLARE_XSTRTOL(name, type) \
   strtol_error name (char const *restrict /*nptr*/,             \