Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
Standard C Library Functionsoffsetof(3C)


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)



SunOS 5.9Go To TopLast Changed 29 Dec 1996


Updated: 2004-01-16, 17:19