Content-type: text/html Man page of offsetof

offsetof

Section: Standard C Library Functions (3C)
Updated: 29 Dec 1996
Index Return to Main Contents
 

NAME

offsetof - offset of structure member  

SYNOPSIS

#include <stddef.h>

size_t offsetof(type, member-designator);  

DESCRIPTION

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

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

 

SEE ALSO

attributes(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:27 GMT, October 02, 2010