On this page
stddef.h
Prev: stdint.h | Up: stdlib | Next: stdbool.h
Rel: stdint, stdbool & limits Guide, c/builtins
Ref: cppreference — <stddef.h>
Tags: #public #prog #c #stdlib #stddef #index
Include
#include <stddef.h>
Overview
Core pointer, size, and struct-offset definitions.
Core (#tier/core)
- size_t — Unsigned integer type returned by
sizeofand used for object sizes and array indices. - NULL — Null pointer constant for C11/C17 (C23 adds type-safe
nullptr).
Standard (#tier/standard)
- ptrdiff_t — Signed integer type produced by subtracting two pointers into the same array (
p2 - p1). - offsetof — Compile-time byte offset of
memberfrom the start of structtype.
Specialized (#tier/specialized)
- max_align_t — Type whose alignment is at least as strict as every fundamental type (C11).
Linked from
Related notes
- tuts/c/stdlib Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/stdbool Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/stddef/max_align_t Linked here; links to this page; shared tags: #c, #prog, #stddef, #stdlib
- tuts/c/stdlib/stddef/NULL Linked here; links to this page; shared tags: #c, #prog, #stddef, #stdlib
- tuts/c/stdlib/stddef/offsetof Linked here; links to this page; shared tags: #c, #prog, #stddef, #stdlib
- tuts/c/stdlib/stddef/ptrdiff_t Linked here; links to this page; shared tags: #c, #prog, #stddef, #stdlib
- tuts/c/stdlib/stddef/size_t Linked here; links to this page; shared tags: #c, #prog, #stddef, #stdlib
- tuts/c/stdlib/stdint Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/builtins Linked here; shared tags: #c, #index, #prog
- tuts/c/stdlib/stdint/SIZE_MAX links to this page; shared tags: #c, #prog, #stdlib