Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtOffsetOf(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtOffset(1)

 

Name

XtOffsetOf — determine the byte offset of a field within a structure type. 

Synopsis

Cardinal XtOffsetOf(structure_type, field_name)

      Type structure_type;
      Field field_name;

Arguments

structure_type
Specifies a type that is declared as a structure.

field_name
Specifies the name of a member within the structure.

Description

The XtOffsetOf macro expands to a constant expression that gives the offset in bytes to the specified structure member from the beginning of the structure.  It is normally used to statically initialize resource lists and is more portable than XtOffset, which serves the same function. 

See Also

XtOffset(1)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026