Where is ptrdiff_t defined in C?

Matt Joiner picture Matt Joiner · Aug 30, 2010 · Viewed 29.1k times · Source

Where is ptrdiff_t defined in C?

Answer

GManNickG picture GManNickG · Aug 30, 2010

It's defined in stddef.h.


That header defines the integral types size_t, ptrdiff_t, and wchar_t, the functional macro offsetof, and the constant macro NULL.