declaring routines which return function pointers

Ed Sheppard egs at epsilon.UUCP
Mon Dec 17 13:51:27 AEST 1984


Yeah, I ran into this once before. Instead of

    int ((*fa)())();

as Robert suggests, try using this

    typedef	int	(*FP)();

    int	f() {}

    FP	fa() { return(f); }

which seems to get by our 4.2 cc. Seems kind of ridiculous to me.

						Ed Sheppard
						Bell Communications Research



More information about the Comp.lang.c mailing list