functions returning pointers to functions
Kevin Kissell
kissell at flairvax.UUCP
Thu Dec 15 09:03:52 AEST 1983
To declare a function returning a pointer to a function returning an
integer, the construct
int (*funcfunc())()
is pretty standard. Things get confusing when the parameters are added.
Steve's example of the form
int (*getroutine())(name, table)
does indeed fail under 4.1, but
int (*getroutine(name, table))()
will work just fine, and is more correct if you think about it.
What I can't figure is how the first version worked under 2.8!
Kevin D. Kissell
Fairchild Research Center
Advanced Processor Development
uucp:{ucbvax!sun decvax allegra}!decwrl!flairvax!kissell
More information about the Comp.lang.c
mailing list