Re:Some dark corners of C
by popee on Saturday March 09, 2013 @10:47AM
(#5348660)
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.
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.