From 399644e47874bff147afb19c89228901ac39340e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:40:15 +0200 Subject: Adding upstream version 6.05.01. Signed-off-by: Daniel Baumann --- man3type/ptrdiff_t.3type | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 man3type/ptrdiff_t.3type (limited to 'man3type/ptrdiff_t.3type') diff --git a/man3type/ptrdiff_t.3type b/man3type/ptrdiff_t.3type new file mode 100644 index 0000000..bb6b404 --- /dev/null +++ b/man3type/ptrdiff_t.3type @@ -0,0 +1,47 @@ +.\" Copyright (c) 2020-2022 by Alejandro Colomar +.\" and Copyright (c) 2020 by Michael Kerrisk +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" +.TH ptrdiff_t 3type 2023-03-30 "Linux man-pages 6.05.01" +.SH NAME +ptrdiff_t \- count of elements or array index +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.nf +.B #include +.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. +It is 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 STANDARDS +C11, POSIX.1-2008. +.SH HISTORY +C89, POSIX.1-2001. +.SH SEE ALSO +.BR size_t (3type) -- cgit v1.2.3