Liste des Groupes | Revenir à cl c |
But here's the thing. Is the casting of the result of dlsym() necessary?No, it isn't even remotely the same. C language allows implicit casts from any object pointer type to `void *` and vice-versa. Which is why casting the result of `malloc` is unnecessary.
Isn't this the same as "casting the return value of malloc()", where you
don't need to cast it since it auto-magically gets casted by being assigned
to the thing on the left of the assignment?
And why do we even need the "clumsy" cast? Why not just:Because this is a constraint violation, aka a "compile error".
cosine = dlsym(handle, "cos");
Les messages affichés proviennent d'usenet.