routines which return function point

Gary M. Samuelson garys at bunker.UUCP
Thu Jan 3 08:16:16 AEST 1985


> 
>  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 <x>, where <x> 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



More information about the Comp.lang.c mailing list