Query: offsetof
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
OFFSETOF(3) BSD Library Functions Manual OFFSETOF(3)NAMEoffsetof -- offset of a structure memberSYNOPSIS#include <stddef.h> size_t offsetof(type, member);DESCRIPTIONThe offsetof() macro expands to an integer constant expression of type size_t and yields the offset, in bytes, of the field member from the start of the structure type. A compiler error will result if member is not aligned to a byte boundary (i.e. it is a bit-field).STANDARDSThe offsetof() macro conforms to ANSI X3.159-1989 (``ANSI C89'').BSDFebruary 18, 2010 BSD
| Related Man Pages |
|---|
| stddef(3) - netbsd |
| stddef(3head) - opensolaris |
| offsetof(3) - minix |
| offsetof(3) - xfree86 |
| xtoffsetof(1) - hpux |
| Similar Topics in the Unix Linux Community |
|---|
| Address Alignment rules for structure variables |
| Array alignment on HPUX |
| calling pthread_self (on ubuntu), expensive? |