Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

offsetof - get offset of structure component from start of structure (BS2000)

&pagelevel(4)&pagelevel

Syntax

#include <stddef.h>

size_t offsetof(type, component);

Description

offsetof() returns the offset in bytes between the named structure component and thestart of the structure of the specified type.
offsetof() is a macro.

type is the name of the structure type (label).

component is the name of the structure component.

Return val.

Offset of the structure component from the start of the structure in bytes if successful.

Notes

If the specified structure component is a bit field, the behavior is undefined.