C Standard Library - <stddef.h>


Introduction

stddef .h The header file defines various variable types and macros. Most of these definitions also appear in other header files.

Library variables

The following are the variable types defined in the header file stddef.h:

Serial numberVariables & Description
1ptrdiff_t
This is a signed integer type that is the result of subtracting two pointers.
2size_t
This is the unsigned integer type that is the result of the sizeof keyword.
3wchar_t
This is a wide character constant-sized integer type.

Library macros

The following are the macros defined in the header file stddef.h:

Serial numberMacro & Description
1NULL
This macro is the value of a null pointer constant.
2offsetof(type, member-designator)
This will generate an integer constant of type size_t, which is a structure member relative to the structure The byte offset from the beginning. Members are given in member-designator and the name of the structure is given in type.