<stddef.h>
stddef.h is a header file in the standard library of the C programming language that defines the macros NULL and offsetof as well as the types ptrdiff_t, wchar_t, and size_t.
Inclusion
In C, one includes the header file "stddef.h", in this way:
#include <stddef.h>
In C++, one includes the header file "cstddef", in this way:
#include <cstddef>
Namespace The header file "stddef.h" places its definitions in the global scope; the header file "cstddef" places size_t and ptrdiff_t in namespace std.
stddef.h is a header file in the standard library of the C programming language that defines the macros NULL and offsetof as well as the types ptrdiff_t, wchar_t, and size_t.
Inclusion
In C, one includes the header file "stddef.h", in this way:
#include <stddef.h>
In C++, one includes the header file "cstddef", in this way:
#include <cstddef>
Namespace The header file "stddef.h" places its definitions in the global scope; the header file "cstddef" places size_t and ptrdiff_t in namespace std.
0 comments:
Post a Comment