stddef.h

Go to the documentation of this file.
00001 /* The <stddef.h> header defines certain commonly used macros. */
00002 
00003 #ifndef _STDDEF_H
00004 #define _STDDEF_H
00005 
00006 #define NULL   ((void *)0)
00007 
00008 /* The following is not portable, but the compiler accepts it. */
00009 #define offsetof(type, ident)   ((size_t) (unsigned long) &((type *)0)->ident)
00010 
00011 #if _EM_PSIZE == _EM_WSIZE
00012 typedef int ptrdiff_t;          /* result of subtracting two pointers */
00013 #else   /* _EM_PSIZE == _EM_LSIZE */
00014 typedef long ptrdiff_t;
00015 #endif
00016 
00017 #ifndef _SIZE_T
00018 #define _SIZE_T
00019 typedef unsigned int size_t;    /* type returned by sizeof */
00020 #endif
00021 
00022 #ifndef _WCHAR_T
00023 #define _WCHAR_T
00024 typedef char wchar_t;           /* type expanded character set */
00025 #endif
00026 
00027 #endif /* _STDDEF_H */

Generated on Fri Apr 14 22:57:21 2006 for minix by  doxygen 1.4.6