diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-02-25 12:47:04 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-02-25 13:03:46 +0100 |
| commit | f21101870f24e1f2235d67391036d95512c860f6 (patch) | |
| tree | f4832026bd53224e545d6e8ce92cfb4ef7f68090 | |
| parent | 32cf0d8bb55e282b33a03bee88b3f813a91a5152 (diff) | |
| download | man-pages-f21101870f24e1f2235d67391036d95512c860f6.tar.gz | |
intptr_t.3, system_data_types.7: Move text to a separate page
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
| -rw-r--r-- | man3/intptr_t.3 | 64 | ||||
| -rw-r--r-- | man7/system_data_types.7 | 64 |
2 files changed, 63 insertions, 65 deletions
diff --git a/man3/intptr_t.3 b/man3/intptr_t.3 index db50c0f091..c53931390c 100644 --- a/man3/intptr_t.3 +++ b/man3/intptr_t.3 @@ -1 +1,63 @@ -.so man7/system_data_types.7 +.TH INTPTR_T 3 2022-02-25 Linux "Linux Programmer's Manual" +.SH NAME +intptr_t \- integer types wide enough to hold pointers +.SH SYNOPSIS +.nf +.B #include <stdint.h> +.PP +.BR typedef " /* ... */ " intptr_t; +.fi +.SH DESCRIPTION +.I intptr_t +is a signed integer type +such that any valid +.RI ( "void *" ) +value can be converted to this type and then converted back. +According to the C language standard, it shall be +capable of storing values in the range +.RB [ INTPTR_MIN , +.BR INTPTR_MAX ]. +.PP +The length modifier for +.I intptr_t +for the +.BR printf (3) +family of functions +is expanded by the macros +.B PRIdPTR +and +.B PRIiPTR +(defined in +.IR <inttypes.h> ); +resulting commonly in +.B %"PRIdPTR" +or +.B %"PRIiPTR" +for printing +.I intptr_t +values. +The length modifier for +.I intptr_t +for the +.BR scanf (3) +family of functions +is expanded by the macros +.B SCNdPTR +and +.B SCNiPTR, +(defined in +.IR <inttypes.h> ); +resulting commonly in +.B %"SCNdPTR" +or +.B %"SCNiPTR" +for scanning +.I intptr_t +values. +.SH CONFORMING TO +C99 and later; POSIX.1-2001 and later. +.SH NOTES +The following header also provides these types: +.IR <inttypes.h> . +.SH SEE ALSO +.BR void (3) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index 84f5b69953..6a55136d5a 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -70,70 +70,6 @@ system_data_types \- overview of system data types .\"------------------------------------- intmax_t ---------------------/ .\"------------------------------------- intN_t -----------------------/ .\"------------------------------------- intptr_t ---------------------/ -.TP -.I intptr_t -.RS -.IR Include : -.IR <stdint.h> . -Alternatively, -.IR <inttypes.h> . -.PP -A signed 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 -.RB [ INTPTR_MIN , -.BR INTPTR_MAX ]. -.PP -The length modifier for -.I intptr_t -for the -.BR printf (3) -family of functions -is expanded by the macros -.B PRIdPTR -and -.B PRIiPTR -(defined in -.IR <inttypes.h> ); -resulting commonly in -.B %"PRIdPTR" -or -.B %"PRIiPTR" -for printing -.I intptr_t -values. -The length modifier for -.I intptr_t -for the -.BR scanf (3) -family of functions -is expanded by the macros -.B SCNdPTR -and -.B SCNiPTR, -(defined in -.IR <inttypes.h> ); -resulting commonly in -.B %"SCNdPTR" -or -.B %"SCNiPTR" -for scanning -.I intptr_t -values. -.PP -.IR "Conforming to" : -C99 and later; POSIX.1-2001 and later. -.PP -.IR "See also" : -the -.I uintptr_t -and -.I void * -types in this page. -.RE .\"------------------------------------- lconv ------------------------/ .\"------------------------------------- ldiv_t -----------------------/ .\"------------------------------------- lldiv_t ----------------------/ |
