From 516c570294e8d927cc4a5018a0561444acd4f919 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 23 Jul 2019 13:56:18 +0300 Subject: [PATCH] lib: Add comment to MAX_INT_STRLEN macro --- src/lib/strfuncs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/strfuncs.h b/src/lib/strfuncs.h index 59fb0ad19b..bfd2bd17b3 100644 --- a/src/lib/strfuncs.h +++ b/src/lib/strfuncs.h @@ -1,6 +1,8 @@ #ifndef STRFUNC_H #define STRFUNC_H +/* Maximum number of bytes needed for the largest uintmax_t or the lowest + intmax_t number in base 10. This value includes the trailing \0. */ #define MAX_INT_STRLEN ((sizeof(uintmax_t) * CHAR_BIT + 2) / 3 + 1) extern const unsigned char uchar_nul; /* (const unsigned char *)"" */ -- 2.47.3