ptrdiff_t Type (Scalar)

stddef.h

typedef long ptrdiff_t;

A type to define the result of subtracting two pointers.

ptrdiff_t is a type proposed by ANSI C for defining the result of subtracting two pointers (e.g. the first address after the end of an array minus the beginning of the array).