system_data_types.7: Add 'uintptr_t'

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 12:15:59 +02:00 committed by Michael Kerrisk
parent d6ecaa2252
commit 8df2c50a79
1 changed files with 68 additions and 0 deletions

View File

@ -1412,6 +1412,74 @@ and
.I unsigned __int128
types in this page.
.RE
.\"------------------------------------- uintptr_t --------------------/
.TP
.I uintptr_t
.RS
Include:
.IR <stdint.h> .
Alternatively,
.IR <inttypes.h> .
.PP
An unsigned integer type
such that any valid
.RI ( "void *" )
value can be converted to this type and back.
According to the C language standard, it shall be
capable of storing values in the range [0,
.BR UINTPTR_MAX ].
.PP
The length modifier for
.I uintptr_t
for the
.BR printf (3)
family of functions
is expanded by the macros
.BR PRIuPTR,
.BR PRIoPTR,
.B PRIxPTR
and
.B PRIXPTR
(defined in
.IR <inttypes.h> );
resulting commonly in
.B %"PRIuPTR"
or
.B %"PRIxPTR"
for printing
.I uintptr_t
values.
The length modifier for
.I uintptr_t
for the
.BR scanf (3)
family of functions
is expanded by the macros
.BR SCNuPTR,
.BR SCNoPTR,
.B SCNxPTR
and
.B SCNXPTR
(defined in
.IR <inttypes.h> );
resulting commonly in
.B %"SCNuPTR"
or
.B %"SCNxPTR"
for scanning
.I uintptr_t
values.
.PP
Conforming to:
C99 and later; POSIX.1-2001 and later.
.PP
See also the
.I intptr_t
and
.I void *
.\" TODO: Document void *
types in this page.
.RE
.\"------------------------------------- va_list ----------------------/
.TP
.I va_list