type of function

Chris Torek chris at mimsy.UUCP
Sat Aug 19 00:46:49 AEST 1989


In article <813 at lychee.cs.utexas.edu> paul at cs.utexas.edu
(Supoj Sutanthavibul) writes:
>How would one declare a function which returns a pointer to a function
>which return void?

% cdecl
declare foo as function (args) returning pointer to function returning void
void (*foo(args))()

(Actually, I cheated: our cdecl does not like `void', so I used `int'
and then changed its output.)

Some C compilers cannot handle `void *' or even (in some situations)
`void (*)()'.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.lang.c mailing list