[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    offsetof(3C) manual page Table of Contents

Name

offsetof - offset of structure member

Synopsis

#include <stddef.h>

size_t offsetof(type, member-designator);

MT-Level

MT-Safe

Description

offsetof() is a macro defined in <stddef.h> which expands to an integral constant expression that has type size_t, the value of which is the offset in bytes, to the structure member (designated by member-designator), from the beginning of its structure (designated by type).


Table of Contents