Manual pages › C library (3C)
offsetof(3C)
offset of structure member
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
NAME
offsetof - offset of structure member
SYNOPSIS
#include <stddef.h>
size _ t offsetof (type, member-designator);
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 ).
amigaux.org is an independent, unofficial project. This site and its developers are not affiliated with, endorsed by, or sponsored by Amiga Corporation. Amiga is a registered trademark of Amiga Corporation. The project is likewise not affiliated with, endorsed by, or sponsored by Commodore or any other trademark holder. AmigaOS and Amiga UNIX are trademarks of their respective owners; UNIX is a registered trademark of The Open Group. Amiga UNIX is Commodore's port of AT&T UNIX System V Release 4; portions are copyright AT&T, UNIX System Laboratories and their successors.