Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site bunker.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!sdcsvax!dcdwest!ittvax!bunker!garys
From: garys@bunker.UUCP (Gary M. Samuelson)
Newsgroups: net.lang.c
Subject: Re: Re: routines which return function point
Message-ID: <641@bunker.UUCP>
Date: Wed, 2-Jan-85 17:16:16 EST
Article-I.D.: bunker.641
Posted: Wed Jan  2 17:16:16 1985
Date-Received: Fri, 4-Jan-85 04:40:23 EST
References: <1235@hou4b.UUCP> <27600041@uiucdcs.UUCP>
Organization: Bunker Ramo, Trumbull Ct
Lines: 14

> 
>  In other words, Whitesmith's "onexit" takes as argument the same type
>  as its return value: pointer to function which returns pointer to a
>  function.

In 'C', there is no such thing as a "function (period)"; it is
always a "function which returns , where  is some known type.
Hence the difficulty of declaring a function which returns a pointer
to a function of the same type.  Try to declare a function which
returns its own address.  "A function which returns a pointer to a
function which returns a pointer ...."

Gary Samuelson
ittvax!bunker!garys