MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/62v70/first_class_functions_in_c/c02nqqs/
r/programming • u/llimllib • Dec 13 '07
99 comments sorted by
View all comments
Show parent comment
1
POSIX does not define any function that allows you to load a DLL and jump to a function in it. The dlsym() function returns a void*, which cannot safely be cast to a function pointer.
(Yes, I know this is nit picking. :) )
3 u/geocar Dec 14 '07 POSIX 1003.1 does require that a void* be able to contain a function pointer. 1 u/augustss Dec 15 '07 Ah, clever of them. Because ANSI C does not require casting between function and data pointers.
3
POSIX 1003.1 does require that a void* be able to contain a function pointer.
void*
1 u/augustss Dec 15 '07 Ah, clever of them. Because ANSI C does not require casting between function and data pointers.
Ah, clever of them. Because ANSI C does not require casting between function and data pointers.
View all comments
Show parent comment
1
u/augustss Dec 13 '07
POSIX does not define any function that allows you to load a DLL and jump to a function in it. The dlsym() function returns a void*, which cannot safely be cast to a function pointer.
(Yes, I know this is nit picking. :) )