Article View: comp.std.c
Article #5171Re: function returning pointer to itself
From: Scott M. King
Date: Wed, 13 Jul 1988 23:05
Date: Wed, 13 Jul 1988 23:05
14 lines
715 bytes
715 bytes
In article <5485@batcomputer.tn.cornell.edu> olson@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
Technical Details
Message-ID:
<7725@watdragon.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!lion!smkingReferences:
<5485@batcomputer.tn.cornell.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!watdragon!lion!smking From: smking@lion.waterloo.edu (Scott M. King) Newsgroups: comp.std.c Subject: Re: function returning pointer to itself Message-ID: <7725@watdragon.waterloo.edu> Date: 13 Jul 88 23:05:04 GMT References: <5485@batcomputer.tn.cornell.edu> Sender: daemon@watdragon.waterloo.edu Reply-To: smking@lion.waterloo.edu (Scott M. King) Organization: U. of Waterloo, Ontario Lines: 14