- Function
Calculate the offset of a struct or union member.
- Header
- Declaration
size_t offsetof (type, member);- Description
offsetofcalculates the address offset of astructorunionmember.- Limits
- The function is actually a macro.
- Availability
ISO 9899
- Example
None.