3 ms·
FWIW, POSIX practically requires void otr and function otr inter-convertibility hence the support from GCC.
by gpderetta 1y ago
FWIW, POSIX practically requires void otr and function otr inter-convertibility hence the support from GCC.
- wahern 1y agoNot practically, but literally: Note that conversion from a void * pointer to a function pointer as in: fptr = (int (*)(int))dlsym(handle, "my_function"); is not defined by the ISO C standard. This standard requires this conversion to work correctly on conforming implementations.
- gpderetta 1y agoI remembered the dlsym requirement, I wasn't sure it was de-jure.