求结构体成员相对地址

来源:互联网 发布:app编程工具 编辑:程序博客网 时间:2024/06/01 10:14
#define offset(S, member) (long(&(((S*)0)->member)))
0 0
原创粉丝点击