3 ms·
> In C, function isn't an object, you can't convert a function pointer as a void pointer and back, and use it. It is not defined by the C standard, but POSIX r
by gpderetta 6y ago
> In C, function isn't an object, you can't convert a function pointer as a void pointer and back, and use it.
It is not defined by the C standard, but POSIX requires it. So any environment (including the compiler) claiming POSIX conformance must support it.
Not sure how it works on Itanium though as, IIRC, function pointers there are twice as wide as normal pointers.
- pjmlp 6y agoPlenty of platforms don't care about claiming POSIX conformance.