POSIX restrictions on pointer types in C
问题 Background The POSIX standard adds a lot of library functions and other identifiers to the C language. In the description of the dlsym() function, it says (with my emphasis): SYNOPSIS #include <dlfcn.h> void *dlsym(void *restrict handle, const char *restrict name); DESCRIPTION The dlsym () function shall obtain the address of a symbol (a function identifier or a data object identifier) ... The C standard doesn't guarantee that a function pointer can be converted to a void * , or even that the