home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / STDDEF.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  645 b   |  33 lines

  1. /* stddef.h - This file contains "standard definitions" 
  2.  * $Version: 1.1 $
  3.  * Copyright (c) 1988-91 Intel Corporation, ALL RIGHTS RESERVED.
  4.  */
  5.  
  6. #ifndef _stddefh
  7. #define _stddefh
  8. /*lint -library */
  9.  
  10. #ifndef NULL
  11. #define NULL ((void *)0)
  12. #endif
  13.  
  14. #ifndef _ptrdiff_t
  15. typedef int ptrdiff_t;
  16. #define _ptrdiff_t
  17. #endif
  18.  
  19. #ifndef _size_t
  20. #define _size_t
  21. typedef unsigned size_t;  /* result of sizeof operator */
  22. #endif
  23.  
  24. #ifndef _wchar_t
  25. #define _wchar_t
  26. typedef char wchar_t;
  27. #endif
  28.  
  29. #define offsetof(s_type, memb)  ((size_t)(char *)&((s_type *)0)->memb)
  30. #define NUL '\0'  /* string terminator */
  31.  
  32. #endif /* _stddefh */
  33.