type of function
Supoj Sutanthavibul
paul at cs.utexas.edu
Fri Aug 18 08:07:29 AEST 1989
How would one declare a function which returns a pointer to a function
which return void? To clarify this question, here is an example. The
question is: what is the type of get_func()? Or, how would it be declared
in another function that calls it?
void
foo1()
{
...
}
void
foo2()
{
...
}
.
.
.
void
fooN()
{
...
}
get_func(which)
int which;
{
if (... which ... ) return(foo1);
...
else if (... which ... ) return(fooN);
}
More information about the Comp.lang.c
mailing list