Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

C Standard Library – <stddef.h>


May 11, 2021 C


Table of contents


C Standard Library - slt;stddef.h.gt;

Brief introduction

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

Library variables

Here are the types of variables defined in the header file stddef.h:

Serial number Variable & description
1 ptrdiff_t
This is a symbol integer type, which is the result of two pointers.
2 size_t
This is an unsigned integer type, it is sizeof The result of the keyword.
3 wchar_t
This is an integer type of a wide-character constant size.

Library macros

Here are the macros defined in the header file stddef.h:

Serial number Macro & Description
1 NULL
This macro is a value of an empty pointer.
2 offsetof(type, member-designator)
This generates an integer constant of type size_t, which is a structural member relative to the end of the structure.Member is member-designator A given, the name of the structure is type Presented.