Where is ptrdiff_t defined in C?

后端 未结 2 1320
清歌不尽
清歌不尽 2021-02-02 05:27

Where is ptrdiff_t defined in C?

相关标签:
2条回答
  • 2021-02-02 05:59

    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.

    0 讨论(0)
  • 2021-02-02 06:03

    It is defined by the POSIX standard: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html Where the type is exactly may be implemetation-specific, but interface is stddef.h

    0 讨论(0)
提交回复
热议问题