3 ms·
Not necessarily. For instance, you won't get it on accessing the function pointer with dlopen/dlsym.
by seba_dos1 11y ago
Not necessarily. For instance, you won't get it on accessing the function pointer with dlopen/dlsym.
- delinka 11y agoAnd that's because dlsym takes a void * - attempting to teach dlsym about every function signature (e.g. imagine it were C++ and could be genericized...) would be monstrous.
- seba_dos1 11y agoOf course, so that's where typedefed declaration may be handy - since compiler doesn't know what is going to be dlsymed, it won't tell you when the signature won't match.