ANSI definitions of default macros and types
#define offsetof(type,member) ((unsigned long) &(((type*)0)->member)) |
Returns the offset of a member in a structure.
offsetof is a macro which returns the offset of a member in a structure type.
The type can either be defined through
typedef
, or preceded
by struct
, as usual.
Deprecated alias: OFFSETOF
typedef long ptrdiff_t; |
A type to define the result of subtracting two pointers.
ptrdiff_t is a type proposed by ANSI C for defining the result of subtracting two pointers (e.g. the first address after the end of an array minus the beginning of the array).
typedef unsigned long size_t; |
A type to define sizes of strings and memory blocks.
size_t is a type proposed by ANSI C for defining sizes of strings and memory blocks.