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++] #if __STDC_WANT_LIB_EXT1__ [added with TR24731] typedef size_t rsize_t; #endif /* __STDC_WANT_LIB_EXT1__ */
#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 size_t rsize_t; [added with TR24731]
The type is a synonym for
used to represent a function argument to be checked on entry
to a function. It is a
runtime constraint violation
for an argument of type
rsize_t to be greater than
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 © 1992-2013 by P.J. Plauger and Jim Brodie. All rights reserved.