offsetof
www.zhaoch.top > 编程 > c_cpp
计算元素在结构体中的位置
define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER);
The End
- My github location
- View Source of this website GhostZch.github.io
- Commit issues to discuss with me and others
www.zhaoch.top > 编程 > c_cpp
define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER);