ptrdiff_t
Section: Misc. Reference Manual Pages (3type)
Updated: 2022-10-30
Index
Return to Main Contents
NAME
ptrdiff_t - count of elements or array index
LIBRARY
Standard C library
(libc)
SYNOPSIS
#include <stddef.h>
typedef /* ... */ ptrdiff_t;
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
[PTRDIFF_MAX,
PTRDIFF_MAX].
The length modifier for
ptrdiff_t
for the
printf(3)
and the
scanf(3)
families of functions is
t,
resulting commonly in
%td
or
%ti
for printing
ptrdiff_t
values.
STANDARDS
C99 and later;
POSIX.1-2001 and later.
SEE ALSO
size_t(3type)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- STANDARDS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 18:00:42 GMT, May 18, 2024