I let gcc compile the following example using -Wall -pedantic:
gcc
-Wall -pedantic
#include int main(void) { printf(\"main: %p\\n\",
While converting a function pointer to a void pointer is technically dangerous, converting function pointers to void pointers is used in the POSIX standard, so it is almost sure to work on most compilers.
Look up dlsym().
dlsym()