Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!spool.mu.edu!uunet!sam!bierman From: bierman@davidsys.com Newsgroups: comp.lang.c Subject: Re: Returning a pointer to a function Message-ID: <11228@davidsys.com> Date: 27 Mar 91 17:26:38 GMT References: <1991Mar25.094620.70@skyler.mavd.honeywell.com> Organization: DAVID Systems Inc, Sunnyvale CA Lines: 15 In article <1991Mar25.094620.70@skyler.mavd.honeywell.com>, magnuson@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@skyler.mavd.honeywell.com (612-542-5052) how about: typedef int (*fnPT)(); fnPT yourFunction() {....}; Andy Bierman bierman@davidsys.com