Reputation: 41
What does typedef in this case?
typedef void(*sfc_funcptr_t)();
sfc_funcptr_t* const func_src = (sfc_funcptr_t*)interfaces;
Upvotes: 3
Views: 92
Reputation: 108986
typedef void(*sfc_funcptr_t)();
In C sfc_funcptr_t
is type of "pointer to function returning void and accepting an unspecified, but fixed, number of arguments with unspecified, but fixed, types" (I don't know C++ ... I suspect it might be different)
sfc_funcptr_t* const func_src = (sfc_funcptr_t*)interfaces;
Create and initialize func_src
as a pointer to (the function) interfaces
Upvotes: 4