offsetof3
Offset of a structure member
Usage
#include <stddef.h>
size_t
offsetof(type, member);
Overview
The offsetof() macro expands to an integer constant expression of type size_t and yields the offset, in bytes, of the field member from the start of the structure type.
A compiler error will result if member is not aligned to a byte boundary (i.e. it is a bit-field).
Releases
30 releases since FreeBSD 10.0-RELEASE; the text changed 16 times.