problem returning function pointers
Alexandre Oliva
aoliva@cygnus.com
Thu Mar 30 15:41:00 GMT 2000
On Mar 29, 2000, Ben Woodard <ben@valinux.com> wrote:
> For example I want to declare a function:
> void (*)(void *,const unsigned char*) to_ipaddr_funct((*fp)(void));
> but the compiler doesn't seem to like that
Sure, the syntax is incorrect. It accepts the correct syntax:
void (*to_ipaddr_funct(int (*fp)(void)))(void *,const unsigned char*);
--
Alexandre Oliva Enjoy Guaraná, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me
More information about the Gcc-bugs
mailing list