]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Add comment to MAX_INT_STRLEN macro
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 23 Jul 2019 10:56:18 +0000 (13:56 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 5 Sep 2019 09:26:10 +0000 (09:26 +0000)
src/lib/strfuncs.h

index 59fb0ad19bf849c62fdaa65daeb362d9aba69783..bfd2bd17b3e1c6103946aba21061db7ce1f09e9d 100644 (file)
@@ -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 *)"" */