list操作C源码
#include <stdio.h>
#include <stdlib.h>
#define offsetof(type, member) ((size_t) &((type*)0)->member)
/**
* container_of - cast a member of a structure out to the containing structure
*
* @ptr: the pointer to the member.
...
原创
2021-03-29 17:05:56 ·
106 阅读 ·
0 评论