From 2ebf179bf3660b80f2391e69003f9572bb3e52fb Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 24 Jul 2024 17:00:13 -0700 Subject: [PATCH] xstrtol: improve xstrtol.h comment --- lib/xstrtol.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/xstrtol.h b/lib/xstrtol.h index 10b48cac4e..1fab748810 100644 --- a/lib/xstrtol.h +++ b/lib/xstrtol.h @@ -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*/, \ -- 2.39.5