While following some tutorials and reading about function pointers I learned that evidently assigning a void pointer to a function pointer in ISO C is undefined, is there any wa
In tlpi-book I found this trick very interesting:
#include int main(int argc, char *argv[]) { ... void (*funcp)(void); /* Pointer to function with no arguments */ ... *(void **) (&funcp) = dlsym(libHandle, argv[2]); }