home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / new / dev / c / hce / include / clib / stddef.h < prev    next >
C/C++ Source or Header  |  1992-09-02  |  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.