function returning pointer to itself

Scott M. King smking at lion.waterloo.edu
Thu Jul 14 09:05:04 AEST 1988


In article <5485 at batcomputer.tn.cornell.edu> olson at tcgould.tn.cornell.edu (olson) writes:
>Does the new C standard have a natural way to declare a
>function that returns a pointer to itself

	void *(*
main() )()
{
	return main;
}

Ugly eh???
--

Scott M. King



More information about the Comp.std.c mailing list