Returning a pointer to a function

bierman at davidsys.com bierman at davidsys.com
Thu Mar 28 03:26:38 AEST 1991


In article <1991Mar25.094620.70 at skyler.mavd.honeywell.com>, magnuson at skyler.mavd.honeywell.com (Randy Magnuson - Honeywell Inc.) writes:
> I am writing an application that needs a function that returns a pointer to a
> function (which returns an int).  Can anyone send me an example of how to
> declare such a function?
> -- 
> Randy R. Magnuson
> magnuson at skyler.mavd.honeywell.com  (612-542-5052)

how about:

typedef   int   (*fnPT)();
fnPT	yourFunction() {....};

Andy Bierman
bierman at davidsys.com



More information about the Comp.lang.c mailing list