11 } __attribute__((packed));
13 #define offsetof(TYPE, MEMB) ((size_t) &((TYPE *)0)->MEMB)
16 struct bf mybf = { 0xffffffff, 4097, 65537, 5, 0xff, 4.5, 257 };
18 dumpMem(&mybf, sizeof mybf);
19 printf("sizeof mybf %d\n", sizeof mybf);
20 printf("offset a = %d\n", offsetof(struct bf, a));
21 printf("offset c = %d\n", offsetof(struct bf, c));
22 printf("offset d = %d\n", offsetof(struct bf, d));