diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-20 23:14:14 +0200 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-07-20 23:14:14 +0200 |
commit | e71c143cce9a01d3f75db47956ddc21210bc4435 (patch) | |
tree | 2aa50689243a9931c2efc9cb2096d2528751814a | |
parent | 88796fd76e5e5feff6d3110cdc8bf5ccb03870cf (diff) |
ptrdiff_t.3type, system_data_types.7: Move ptrdiff_t to a separate page
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | man3/ptrdiff_t.3type | 49 | ||||
-rw-r--r-- | man7/system_data_types.7 | 41 |
2 files changed, 50 insertions, 40 deletions
diff --git a/man3/ptrdiff_t.3type b/man3/ptrdiff_t.3type index db50c0f09..7020c2e15 100644 --- a/man3/ptrdiff_t.3type +++ b/man3/ptrdiff_t.3type @@ -1 +1,48 @@ -.so man7/system_data_types.7 +.\" Copyright (c) 2020-2022 by Alejandro Colomar <colomar.6.4.3@gmail.com> +.\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" +.TH PTRDIFF_T 3type 2022-07-20 Linux "Linux Programmer's Manual" +.SH NAME +ptrdiff_t \- count of elements or array index +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.nf +.B #include <stddef.h> +.PP +.BR typedef " /* ... */ " ptrdiff_t; +.fi +.SH DESCRIPTION +Used for a count of elements, or an array index. +It is the result of subtracting two pointers. +According to ISO C, +it shall be a signed integer type +capable of storing values in the range +.RB [ PTRDIFF_MAX , +.BR PTRDIFF_MAX ]. +.PP +The length modifier for +.I ptrdiff_t +for the +.BR printf (3) +and the +.BR scanf (3) +families of functions is +.BR t , +resulting commonly in +.B %td +or +.B %ti +for printing +.I ptrdiff_t +values. +.SH CONFORMING TO +C99 and later. +POSIX.1-2001 and later. +.SH SEE ALSO +.BR size_t (3type), +.BR ssize_t (3type) diff --git a/man7/system_data_types.7 b/man7/system_data_types.7 index de1df9417..830395802 100644 --- a/man7/system_data_types.7 +++ b/man7/system_data_types.7 @@ -58,42 +58,6 @@ system_data_types \- overview of system data types .\"------------------------------------- off_t ------------------------/ .\"------------------------------------- pid_t ------------------------/ .\"------------------------------------- ptrdiff_t --------------------/ -.TP -.I ptrdiff_t -.RS -.IR Include : -.IR <stddef.h> . -.PP -Used for a count of elements, and array indices. -It is the result of subtracting two pointers. -According to the C language standard, it shall be a signed integer type -capable of storing values in the range -.RB [ PTRDIFF_MIN , -.BR PTRDIFF_MAX ]. -.PP -The length modifier for -.I ptrdiff_t -for the -.BR printf (3) -and the -.BR scanf (3) -families of functions is -.BR t ; -resulting commonly in -.B %td -or -.B %ti -for printing -.I ptrdiff_t -values. -.PP -.IR "Conforming to" : -C99 and later; POSIX.1-2001 and later. -.PP -.IR "See also" : -.BR size_t (3type), -.BR ssize_t (3type) -.RE .\"------------------------------------- regex_t ----------------------/ .TP .I regex_t @@ -169,13 +133,12 @@ POSIX.1-2001 and later. .PP .IR "See also" : .BR off_t (3type), +.BR ptrdiff_t (3type), .BR ssize_t (3type) .PP See also the .I regmatch_t -structure and the -.I ptrdiff_t -type in this page. +structure in this page. .RE .\"------------------------------------- sigevent ---------------------/ .TP |