Only if the function return_function returns a NULL pointer.
I also love the weakly typedness of C.
( ,
Sun 17 Apr 2005, 23:51,
archived)
I sometimes use function pointers
but I don't know what that says.
It looks like it declares a function that takes a void pointer, and then the function is cast as a pointer (and it returns a void pointer). What does that mean?
*gets out K&R*
*remembers brackets associate left to right*
hang on a minute.
OK, I vaguely remember that the parentheses are needed in order to declare a pointer to a function instead of just declaring a function that returns a handle. I get the impression that what you've made is a pointer to a function that takes a pointer to a function and returns a pointer to a function, maybe, not sure.
*goes to bed*
( ,
Mon 18 Apr 2005, 0:03,
archived)
It looks like it declares a function that takes a void pointer, and then the function is cast as a pointer (and it returns a void pointer). What does that mean?
*gets out K&R*
*remembers brackets associate left to right*
hang on a minute.
OK, I vaguely remember that the parentheses are needed in order to declare a pointer to a function instead of just declaring a function that returns a handle. I get the impression that what you've made is a pointer to a function that takes a pointer to a function and returns a pointer to a function, maybe, not sure.
*goes to bed*