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

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

如果定义的是函数指针的话int(*init_fnc_t) (void);
应该有这个星号吧?

typedef 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 apple;
typedef int* orange;
之间的区别

你可能感兴趣的:(typedef int(init_fnc_t) (void);这句话是什么意思啊?)