offsetof
Visual Studio 2012
Retrieves the offset of a member from the beginning of its parent structure.
size_t offsetof( structName, memberName );
|
Routine |
Required header |
|---|---|
|
offsetof |
<stddef.h> |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.
Note