ptrdiff_t(3type) ptrdiff_t(3type)
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 stor-
ing 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 print-
ing ptrdiff_t values.
STANDARDS
C99 and later; POSIX.1-2001 and later.
SEE ALSO
size_t(3type)
Linux man-pages 6.03 2022-10-30 ptrdiff_t(3type)
Czas wygenerowania: 0.00015 sek.
Created with the man page lookup class by Andrew Collington.
Based on a C man page viewer by Vadim Pavlov
Unicode soft-hyphen fix (as used by RedHat) by Dan Edwards
Some optimisations by Eli Argon
Caching idea and code contribution by James Richardson
Copyright © 2003-2025 Linux.pl
Hosted by Hosting Linux.pl