How do you do it? Passing is easy:
func(&function);
Declaring a function to take a pointer to a function is less trivial, but something along the lines of:
typedef return_type (name)(argument_type argument_name);
void foo(name* pFunction);
It is too clear and so it is hard to see.
A dunce once searched for fire with a lighted lantern.
Had he known what fire was,
He could have cooked his rice much sooner.
Yes, both work, but I tend to use the former because it more visible that it is actually a pointer.
Originally Posted by Adak
io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
Originally Posted by Salem
You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.
Outside of your DOS world, your header file is meaningless.