Interface __offsetof

Preprocessor macro expanding to an expression

#include <SYS/TYPES.H>

int x = __offsetof(struct type, entry);

Description

This macro returns a byte offset of entry entry in the structure.

Arguments

Returns

Offset from the beginning of the structure to the entry.

See also

GET_STRUCT, LIST_STRUCT