Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

#define RT_UOFFSETOF ( type,
member   )     ( (uintptr_t)&( ((type *)(void *)0)->member) )

Our own special offsetof() variant, returns an unsigned result.

This differs from the usual offsetof() in that it's not relying on builtin compiler stuff and thus can use variables in arrays the structure may contain. If in this usful to determin the sizes of structures ending with a variable length field.

offset into the structure of the specified member. unsigned.
type Structure type.
member Member.

Definition at line 849 of file cdefs.h.

Generated by  Doxygen 1.6.0   Back to index