diff mbox series

[v2,1/8] system_data_types.7: Add 'intmax_t'

Message ID 20200929103028.56566-2-colomar.6.4.3@gmail.com
State New
Headers show
Series Add some <stdint.h> types | expand

Commit Message

Alejandro Colomar Sept. 29, 2020, 10:30 a.m. UTC
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
 man7/system_data_types.7 | 56 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
diff mbox series


diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index fe6e90afe..e718b3c30 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -343,6 +343,62 @@  Conforming to: C99 and later; POSIX.1-2001 and later.
 See also:
 .BR imaxdiv (3)
+.\"------------------------------------- intmax_t ---------------------/
+.I intmax_t
+.IR <stdint.h> .
+.IR <inttypes.h> .
+A signed integer type
+capable of representing any value of any signed integer type
+supported by the implementation.
+According to the C language standard, it shall be
+capable of storing values in the range
+The macro
+.\" TODO: Document INT*_C(3)
+expands its argument to an integer constant of type
+.IR intmax_t .
+The length modifier for
+.I intmax_t
+for the
+.BR printf (3)
+and the
+.BR scanf (3)
+families of functions is
+.BR j ;
+resulting commonly in
+.B %jd
+.B %ji
+for printing
+.I intmax_t
+.I intmax_t
+is not large enough to represent values of type
+.I __int128
+in implementations where
+.I __int128
+is defined and
+.I long long
+is less than 128 bits wide.
+Conforming to: C99 and later; POSIX.1-2001 and later.
+See also the
+.I uintmax_t
+type in this page.
 .\"------------------------------------- lconv ------------------------/
 .I lconv