Type of function returning function.

Charles Hannum hannum at schubert.psu.edu
Thu Jul 19 14:29:00 AEST 1990


In article <20299 at grebyn.com> ckp at grebyn.com (Checkpoint Technologies) writes:

   In article <1990Jul10.024205.17382 at media.uucp> rmf at media.uucp (Roger Fujii) writes:
   >So, just how does one type a function returning a pointer to a function?
								   ^^^^^^^^
   To start with, function-ness is not a "terminating" data type.  What you
   really mean to say is I want a TYPE representing a pointer to a function
   returning an *int* (as in your example).


schubert> cdecl
Type `help' or `?' for help
cdecl> declare foo as function returning pointer to function returning int
int (*foo())()
cdecl>

Once again...  cdecl is your friend!
--
 
Virtually,
Charles Martin Hannum		 "Those who say a thing cannot be done should
Please send mail to:		  under no circumstances stand in the way of
hannum at schubert.psu.edu		  he who is doing it." - a misquote



More information about the Comp.lang.c mailing list