NAME | LIBRARY | SYNOPSIS | DESCRIPTION | STANDARDS | HISTORY | NOTES | BUGS | SEE ALSO | COLOPHON |
|
|
intmax_t(3type) intmax_t(3type)
intmax_t, uintmax_t - greatest-width basic integer types
Standard C library (libc)
#include <stdint.h> typedef /* ... */ intmax_t; typedef /* ... */ uintmax_t; #define INTMAX_WIDTH /* ... */ #define UINTMAX_WIDTH INTMAX_WIDTH #define INTMAX_MAX /* 2**(INTMAX_WIDTH - 1) - 1 */ #define INTMAX_MIN /* - 2**(INTMAX_WIDTH - 1) */ #define UINTMAX_MAX /* 2**UINTMAX_WIDTH - 1 */ #define INTMAX_C(c) c ## /* ... */ #define UINTMAX_C(c) c ## /* ... */
intmax_t is a signed integer type capable of representing any value of any basic signed integer type supported by the implementation. It is capable of storing values in the range [INTMAX_MIN, INTMAX_MAX]. uintmax_t is an unsigned integer type capable of representing any value of any basic unsigned integer type supported by the implementation. It is capable of storing values in the range [0, UINTMAX_MAX]. The macros [U]INTMAX_WIDTH expand to the width in bits of these types. The macros [U]INTMAX_MAX expand to the maximum value that these types can hold. The macro INTMAX_MIN expands to the minimum value that intmax_t can hold. The macros [U]INTMAX_C() expand their argument to an integer constant of type [u]intmax_t. The length modifier for [u]intmax_t for the printf(3) and the scanf(3) families of functions is j; resulting commonly in %jd, %ji, %ju, or %jx for printing [u]intmax_t values.
C11, POSIX.1-2008.
C99, POSIX.1-2001.
The following header also provides these types: <inttypes.h>.
These types may not be as large as extended integer types, such as __int128
int64_t(3type), intptr_t(3type), printf(3), strtoimax(3)
This page is part of the man-pages (Linux kernel and C library
user-space interface documentation) project. Information about
the project can be found at
⟨https://www.kernel.org/doc/man-pages/⟩. If you have a bug report
for this manual page, see
⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
This page was obtained from the tarball man-pages-6.9.1.tar.gz
fetched from
⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
2024-06-26. If you discover any rendering problems in this HTML
version of the page, or you believe there is a better or more up-
to-date source for the page, or you have corrections or
improvements to the information in this COLOPHON (which is not
part of the original manual page), send a mail to
[email protected]
Linux man-pages 6.9.1 2024-05-02 intmax_t(3type)
Pages that refer to this page: intN_t(3type), intptr_t(3type)