Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!uc!nic.MR.NET!nic.stolaf.edu!news From: hannum@schubert.psu.edu (Charles Hannum) Newsgroups: comp.lang.c Subject: Re: Type of function returning function. Message-ID: <1990Jul19.042900.7186@acc.stolaf.edu> Date: 19 Jul 90 04:29:00 GMT References: <1990Jul10.024205.17382@media.uucp> <20299@grebyn.com> Sender: news@acc.stolaf.edu Organization: The Pennsylvania State University Public NeXT Laboratory Lines: 24 In-Reply-To: ckp@grebyn.com's message of 13 Jul 90 07:25:18 GMT In article <20299@grebyn.com> ckp@grebyn.com (Checkpoint Technologies) writes: In article <1990Jul10.024205.17382@media.uucp> rmf@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@schubert.psu.edu he who is doing it." - a misquote