typedef int(init_fnc_t)(void)

场景:typedef int(init_fnc_t) (void);什么意思,该怎么处理

typedef int(init_fnc_t) (void);什么意思
typedef int(init_fnc_t) (void);这句话是什么意思啊?


看不懂,是XLOADER程序里面的。


如果定义的是函数指针的话int(*init_fnc_t) (void);

应该有这个星号吧?

------解决方案--------------------
没有*号也可以
声明变量时要这样init_fnc_t *pinit_fnc_t;加*号


typedef int(*init_fnc_t) (void);
init_fnc_t pinit_fnc_t;

typedef int(init_fnc_t) (void);
init_fnc_t *pinit_fnc_t;

两者一样