.ds Vv 1.2.14 .TH VistaIOOffset 3 "19 January 1993" "VistaIO Version \*(Vv" .SH NAME VistaIOOffset, VistaIOOffsetOf \- determine the byte offset of a structure field .SH SYNTAX .nf .B "#include " .PP .ft B size_t VistaIOOffset (\fIpointer_type\fP, \fIfield_name\fP) .RS Type \fIpointer_type\fP; Field \fIfield_name\fP; .RE .PP .ft B size_t VistaIOOffsetOf (\fIstruct_type\fP, \fIfield_name\fP) .RS Type \fIstruct_type\fP; Field \fIfield_name\fP; .RE .fi .SH ARGUMENTS .IP \fIfield_name\fP 10n Specifies the name of a structure field for which to calculate the byte offset. .IP \fIpointer_type\fP Specifies a type that is declared as a pointer to a structure. .IP \fIstruct_type\fP Specifies a type that is declared as a structure. .SH DESCRIPTION The \fBVistaIOOffset\fP and \fBVistaIOOffsetOf\fP macros return the byte offset of the \fIfield_name\fP field within its structure. .SH "SEE ALSO" .SH NOTES These are equivalent to the X Toolkit macros \fBXtOffset\fP(3Xt) and \fBXtOffsetOf\fP(3Xt). ANSI C defines an \fBoffsetof\fP macro, which is to be preferred over any of these.