第一题 通过结构体成员得到地址,计算结构体首地址
#include <stdio.h>
#define offsetof(TYPE, MEMBER) ¬_____________________________
#define container_of(ptr, type, member) ({
\
const typeof( ((type *)0)->member ) *__mptr = (ptr);\
_________________________________________________ );})
struct test
{
char i ;
int j;
char k;
};
int main(