ctypeslibcstdint

Where is ptrdiff_t defined in C?


Where is ptrdiff_t defined in C?


Solution

  • 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.