VistaIOOffset, VistaIOOffsetOf - determine the byte offset of a structure field
Contents
Arguments
field_name
Specifies the name of a structure field for which to calculate the byte offset.
pointer_type
Specifies a type that is declared as a pointer to a structure.
struct_type
Specifies a type that is declared as a structure.
Description
The VistaIOOffset and VistaIOOffsetOf macros return the byte offset of the field_name field within its
structure.
Name
VistaIOOffset, VistaIOOffsetOf - determine the byte offset of a structure field
Notes
These are equivalent to the X Toolkit macros XtOffset(3Xt) and XtOffsetOf(3Xt). ANSI C defines an
offsetof macro, which is to be preferred over any of these.
VistaIO Version 1.2.14 19 January 1993 VistaIOOffset(3)
See Also
Syntax
#include<vistaio.h>size_tVistaIOOffset(pointer_type,field_name)Typepointer_type;Fieldfield_name;size_tVistaIOOffsetOf(struct_type,field_name)Typestruct_type;Fieldfield_name;
