[CX]
Some
of the functionality described on this reference page extends the
ISO C standard. Applications shall define the
appropriate feature test macro (see the System Interfaces volume of
IEEE Std 1003.1-2001,Section
2.2, The Compilation Environment) to enable the visibility of
these symbols in this header.
Theheader shall declare sets
of integer types having specified widths, and shall define
corresponding sets of macros. It shall also define macros that
specify limits of integer types corresponding to types defined in
other standard headers.
Note:
The "width" of an integer type is the number of bits used to
store its value in a pure binary system; the actual type may use
more bits than that (for example, a 28-bit type could be stored in
32 bits of actual storage). AnN-bit signed type
has values in the range
-2N-1or
1-2N-1to
2N-1-1, while anN-bit unsigned
type has values in the range 0 to
2N-1.
Types are defined in the following categories:
Integer types having certain exact widths
Integer types having at least certain specified widths
Fastest integer types having at least certain specified
widths
Integer types wide enough to hold pointers to objects
Integer types having greatest width
(Some of these types may denote the same type.)
Corresponding macros specify limits of the declared types and
construct suitable constants.
For each type described herein that the implementation provides,
theheader shall declare
thattypedefname
and define the associated macros. Conversely, for each type
described herein that the implementation does not provide,
theheader shall not declare
thattypedefname,
nor shall it define the associated macros. An implementation shall
provide those types described as required, but need not provide any
of the others (described as optional).
Integer
Types
Whentypedefnames
differing only in the absence or presence of the
initialuare defined, they shall
denote corresponding signed and unsigned types as described in the
ISO/IEC 9899:1999 standard, Section 6.2.5; an
implementation providing one of these corresponding types shall
also provide the other.
In the following descriptions, the symbolNrepresents an unsigned
decimal integer with no leading zeros (for example, 8 or 24, but
not 04 or 048).
Exact-width integer types
Thetypedefna