Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!sun-barr!newstop!texsun!convex!egsner!swsrv1!ta From: ta@swsrv1.uucp (Tom Armistead) Newsgroups: comp.lang.c Subject: Re: Returning a pointer to a function Message-ID: <1991Mar25.205433.9958@swsrv1.uucp> Date: 25 Mar 91 20:54:33 GMT References: <1991Mar25.094620.70@skyler.mavd.honeywell.com> Organization: Software Services Lines: 23 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? There is a program called cdecl in the Unix archives that you need to get. It will take an english description of what you want and give you a C declaration or vice-versa. Ex. cdecl> declare func as function returning pointer to function returning int cdecl> int (*func())() Where the 1st line is what you type in and the second is cdecl's response... The stuff is in Volume14: cdecl2.1.Z and cdecl2.2.Z Tom -- Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx 75040 =========================================================================== {void,egsner}!swsrv1!toma mic!ozdaltx!swsrv1!toma {uunet,smu,ames}!sulaco!ozdaltx!swsrv1!toma