◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── Include: <stddef.h> Syntax: size_t offsetof( struct_name, member_name ); The macro offsetof takes a structure name and a member name as arguments. It returns the offset in bytes of the specified member from the beginning of the struct. Types can be specified using the struct keyword. NOTE: offsetof is not a function and cannot be described using a C prototype. Returns: offset of member_name from beginning of structure. Undefined for bit fields. -♦-