Dereferencing function pointer from a struct with ctypes

前端 未结 0 619
星月不相逢
星月不相逢 2020-12-15 01:07

I have the following struct and function declaration in C:

typedef int (*callback)(struct instance *);

typedef struct instance {
    int x;
    callback f;
}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题