◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Language───────────────────────────────────────────────────────── 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 structure. 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. -♦-