Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
stddef.h File Reference
#include <_types/_ptrdiff_t.h>
#include <_types/_size_t.h>
Include dependency graph for stddef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NULL   ((void*)0)
 
#define offsetof(type, member)   ((size_t)((char*)&(((type*)0)->member) - (char*)0))
 

Macro Definition Documentation

◆ NULL

#define NULL   ((void*)0)

Expands to ((void*)0) (not C++). Implementation-defined null pointer constant

Definition at line 15 of file stddef.h.

◆ offsetof

#define offsetof (   type,
  member 
)    ((size_t)((char*)&(((type*)0)->member) - (char*)0))

byte offset from the beginning of a struct type to specified member

Definition at line 27 of file stddef.h.