Returning a pointer to a function

Stan Brown browns at iccgcc.decnet.ab.com
Sat Mar 30 00:50:57 AEST 1991


In article <1991Mar25.205433.9958 at swsrv1.uucp>, ta at swsrv1.uucp (Tom Armistead) writes:
> 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?
> 
> 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

Anything for those of us with no Unix access?  (MS-DOS and VAX/VMS)

My opinions are mine:  I don't speak for any other person or company.
                   email (until 91/4/30): browns at iccgcc.decnet.ab.com
Stan Brown, Oak Road Systems, Cleveland, Ohio, USA    +1 216 371 0043



More information about the Comp.lang.c mailing list