|
size_t offsetof( struct_name, member_name ); The macro offsetof takes a structure name and a member Types can be specified using the struct keyword. NOTE: offsetof is not a function and cannot be described offset of member_name from beginning of structure. Всего, Иван.
E-mail:
info@telesys.ru
name as arguments. It returns the offset in bytes of the
specified member from the beginning of the struct.
using a C prototype.
Undefined for bit fields.
Ответы