home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff314.lha / zc / zc.lzh / include / stddef.h < prev    next >
C/C++ Source or Header  |  1989-05-13  |  389b  |  20 lines

  1. /*
  2.  * STDDEF.H    standard definitions
  3.  */
  4.  
  5. #ifndef STDDEF_H
  6. #define STDDEF_H
  7.  
  8. #ifndef    NULL
  9. #define    NULL        (0L)
  10. #endif
  11.  
  12. typedef    int        size_t;        /* sizeof() value type */
  13. typedef    long        ptrdiff_t;    /* pointer subtraction result type */
  14.  
  15. /* offset in bytes of 'membr' in structure 'typ' */
  16. #define offsetof(T,m) \
  17.     ((size_t) (((char *) &(((T *) 256)->m)) - ((char *) ((T *) 256))))
  18.  
  19. #endif STDDEF_H
  20.