Name: Anonymous 2015-07-27 20:45
... when C has function pointers?
struct fp
{
struct fp *(*func)(void *);
};
C doesn't even have a generic function pointer type on all implementationsI fail to see how a generic function pointer would be of use, but you can always return a void * that you then cast into a pointer to a struct that contains the function pointer you want.