[转自]C语言offset_of宏和container_of宏

https://cloud.tencent.com/developer/article/1658624

原文地址:https://www.cnblogs.com/yi-mu-xi/p/13754688.html