mirror of https://github.com/mkerrisk/man-pages
system_data_types.7: Add uintN_t family of types
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f30ba1fbcb
commit
1231520ca9
|
@ -1306,6 +1306,88 @@ See also the
|
||||||
.I intmax_t
|
.I intmax_t
|
||||||
type in this page.
|
type in this page.
|
||||||
.RE
|
.RE
|
||||||
|
.\"------------------------------------- uintN_t ----------------------/
|
||||||
|
.TP
|
||||||
|
.IR uint N _t
|
||||||
|
.RS
|
||||||
|
.br
|
||||||
|
Include:
|
||||||
|
.IR <stdint.h> .
|
||||||
|
Alternatively,
|
||||||
|
.IR <inttypes.h> .
|
||||||
|
.PP
|
||||||
|
.IR uint8_t ", " uint16_t ", " uint32_t ", " uint64_t
|
||||||
|
.PP
|
||||||
|
An unsigned integer type
|
||||||
|
of a fixed width of exactly N bits,
|
||||||
|
N being the value specified in its type name.
|
||||||
|
According to the C language standard, they shall be
|
||||||
|
capable of storing values in the range [0,
|
||||||
|
.BR UINT N _MAX ],
|
||||||
|
substituting N by the appropriate number.
|
||||||
|
.PP
|
||||||
|
According to POSIX,
|
||||||
|
.IR uint8_t ", " uint16_t
|
||||||
|
and
|
||||||
|
.I uint32_t
|
||||||
|
are required;
|
||||||
|
.I uint64_t
|
||||||
|
is only required in implementations that provide integer types
|
||||||
|
with width 64;
|
||||||
|
and all other types of this form are optional.
|
||||||
|
.PP
|
||||||
|
The length modifiers for the
|
||||||
|
.IR uint N _t
|
||||||
|
types for the
|
||||||
|
.BR printf (3)
|
||||||
|
family of functions
|
||||||
|
are expanded by macros of the forms
|
||||||
|
.BR PRIu N,
|
||||||
|
.BR PRIo N,
|
||||||
|
.BR PRIx N
|
||||||
|
and
|
||||||
|
.BR PRIX N
|
||||||
|
(defined in
|
||||||
|
.IR <inttypes.h> );
|
||||||
|
resulting for example in
|
||||||
|
.B %"PRIu32"
|
||||||
|
or
|
||||||
|
.B %"PRIx32"
|
||||||
|
for printing
|
||||||
|
.I uint32_t
|
||||||
|
values.
|
||||||
|
The length modifiers for the
|
||||||
|
.IR uint N _t
|
||||||
|
types for the
|
||||||
|
.BR scanf (3)
|
||||||
|
family of functions
|
||||||
|
are expanded by macros of the forms
|
||||||
|
.BR SCNu N,
|
||||||
|
.BR SCNo N,
|
||||||
|
.BR SCNx N
|
||||||
|
and
|
||||||
|
.BR SCNX N
|
||||||
|
(defined in
|
||||||
|
.IR <inttypes.h> );
|
||||||
|
resulting for example in
|
||||||
|
.B %"SCNu16"
|
||||||
|
or
|
||||||
|
.B %"SCNx16"
|
||||||
|
for scanning
|
||||||
|
.I uint16_t
|
||||||
|
values.
|
||||||
|
.PP
|
||||||
|
Conforming to: C99 and later; POSIX.1-2001 and later.
|
||||||
|
.PP
|
||||||
|
See also the
|
||||||
|
.IR __int128 ,
|
||||||
|
.IR intmax_t ,
|
||||||
|
.IR int N _t ,
|
||||||
|
.I uintmax_t
|
||||||
|
and
|
||||||
|
.I unsigned __int128
|
||||||
|
types in this page.
|
||||||
|
.RE
|
||||||
.\"------------------------------------- va_list ----------------------/
|
.\"------------------------------------- va_list ----------------------/
|
||||||
.TP
|
.TP
|
||||||
.I va_list
|
.I va_list
|
||||||
|
|
Loading…
Reference in New Issue