Include the standard header
to define several types and macros that are
of general use throughout the program. The
<stddef.h> is available even in a
/* MACROS */ #define NULL <either 0, 0L, or (void *)0> [0 in C++] #define offsetof(s-type, mbr) <size_t constant expression> /* TYPES */ typedef si-type ptrdiff_t; typedef ui-type size_t; typedef i-type wchar_t; [keyword in C++]
#define NULL <either 0, 0L, or (void *)0> [0 in C++]
The macro yields a null pointer constant that is usable as an address constant expression.
#define offsetof(s-type, mbr) <size_t constant expression>
The macro yields the offset in bytes, of type
the beginning of structure type
X of type
&X.mbr is an
address constant expression.
typedef si-type ptrdiff_t;
The type is the signed integer type
of an object that you declare to store the result of
subtracting two pointers.
typedef ui-type size_t;
The type is the unsigned integer type
of an object that you declare to store the result of the
typedef i-type wchar_t; [keyword in C++]
The type is the integer type
i-type of a
wide-character constant, such as
You declare an object of type
wchar_t to hold a
See also the Table of Contents and the Index.
Copyright © 1989-2002 by P.J. Plauger and Jim Brodie. All rights reserved.