On Tuesday 31 December 2013 07:42:09 noname@xxxxxxxxxxxxx wrote: > dlopen C code example contains following comment: > > /* Writing: cosine = (double (*)(double)) dlsym(handle, "cos"); > ... */ > > "Writing:" should be replaced with "Warning:". both are correct however, i wonder if the comment should be inverted. the latest POSIX spec requires that the natural cast work. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 Linux man pages document the normal Linux environment, and that means POSIX, not strict ISO C. -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.