typedef struct tag {
// variable
....
// method
int (*create)(struct tag*, int, void*);
int (*enque_item)(struct tag*, struct req_tag, int);
} tag_t, *tag_p;
int create(struct tag* this, int size, void* arg)
{
//~~~~
}
이런식으로 구조체 내에 멤버함수를 만들고 외부에 함수를 구현하여