DOKK / manpages / debian 12 / libvistaio-dev / VistaIOOffset.3.en
VistaIOOffset(3) Library Functions Manual VistaIOOffset(3)

VistaIOOffset, VistaIOOffsetOf - determine the byte offset of a structure field

#include <vistaio.h>
size_t VistaIOOffset (pointer_type, field_name)
Type pointer_type;
Field field_name;
size_t VistaIOOffsetOf (struct_type, field_name)
Type struct_type;
Field field_name;

Specifies the name of a structure field for which to calculate the byte offset.
Specifies a type that is declared as a pointer to a structure.
Specifies a type that is declared as a structure.

The VistaIOOffset and VistaIOOffsetOf macros return the byte offset of the field_name field within its structure.

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.

19 January 1993 VistaIO Version 1.2.14