1 2 3 4 5 6
#ifndef _STDDEF_H #define _STDDEF_H #define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 )) #endif