stddef.h 391 B

123456789101112131415161718192021
  1. #ifndef _STDDEF_H
  2. #define _STDDEF_H
  3. /* Signed type of difference of two pointers. */
  4. typedef int ptrdiff_t;
  5. /* Unsigned type of `sizeof' something. */
  6. typedef unsigned int size_t;
  7. /* A null pointer constant. */
  8. #define NULL ((void *)0)
  9. /* Offset of member MEMBER in a struct of type TYPE. */
  10. #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
  11. #endif /* _STDDEF_H */