qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
offsetof
                                             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.
                                    -♦-