4 ms·
It's better to typedef void ( * fptr_t)() and cast to fptr_t instead of void * But it's bigger problem how to force users to cast it back to proper prototype,
by popee 14y ago
It's better to
typedef void ( * fptr_t)()
and cast to fptr_t instead of void *
But it's bigger problem how to force users to cast it back to proper prototype, because casting it back to something else will give UB.