system_data_types.7: Add uint_leastN_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:
Alejandro Colomar 2020-10-01 16:35:35 +02:00 committed by Michael Kerrisk
parent 876838354d
commit 3450a5621e
1 changed files with 75 additions and 0 deletions

View File

@ -1500,6 +1500,81 @@ and
.IR uint N _t
types in this page.
.RE
.\"------------------------------------- uint_leastN_t ----------------/
.TP
.IR uint_least N _t
.RS
Include:
.IR <stdint.h> .
Alternatively,
.IR <inttypes.h> .
.PP
.IR uint_least8_t ,
.IR uint_least16_t ,
.IR uint_least32_t ,
.I uint_least64_t
.PP
The narrowest unsigned integer type
of a width of at least 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_LEAST N _MAX ],
substituting N by the appropriate number.
.PP
The length modifiers for the
.IR uint_least N _t
types for the
.BR printf (3)
family of functions
are expanded by macros of the forms
.BR PRIuLEST N,
.BR PRIoLEAST N,
.BR PRIxLEAST N
and
.BR PRIXLEAST N
(defined in
.IR <inttypes.h> );
resulting for example in
.B %"PRIuLEAST32"
or
.B %"PRIxLEAST32"
for printing
.I uint_least32_t
values.
The length modifiers for the
.IR uint_least N _t
types for the
.BR scanf (3)
family of functions
are expanded by macros of the forms
.BR SCNuLEAST N,
.BR SCNoLEAST N,
.BR SCNxLEAST N
and
.BR SCNXLEAST N
(defined in
.IR <inttypes.h> );
resulting for example in
.B %"SCNuLEAST16"
or
.B %"SCNxLEAST16"
for scanning
.I uint_least16_t
values.
.PP
Conforming to:
C99 and later; POSIX.1-2001 and later.
.PP
See also the
.IR int_fast N _t ,
.IR int_least N _t ,
.IR int N _t ,
.IR uint_fast N _t
and
.IR uint N _t
types in this page.
.RE
.\"------------------------------------- uintmax_t --------------------/
.TP
.I uintmax_t