Article View: comp.std.c
Article #5225Pointer to void (was: function returning pointer to itself)
From: Rick Coates
Date: Fri, 22 Jul 1988 15:52
Date: Fri, 22 Jul 1988 15:52
22 lines
1147 bytes
1147 bytes
I did not intend to appeal to authority with my comment about Microsoft C (_especially_ Microsoft) in my previous posting - it was just a comment. I don't have a copy of the dpANSI standard - but I do have the second edition of K&R. On page 199, they discuss void pointers with no mention of restrictions about pointer to functions. (Also a comment - I am _not_ saying that K&R are the authority). Seems (offhand - I haven't spent years of my life thinking about this issue) that a void pointer should be for any pointer, not just data. Can someone elaborate on why ANSI does not allow void pointers for functions? Rick Coates tektronix!reed!percival!agora!rickc OR tektronix!sequent!islabs!ateq!rick
Technical Details
Message-ID:
<1066@agora.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!tektronix!percival!parsely!agora!rickcReferences:
<5485@batcomputer.tn.cornell.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!tektronix!percival!parsely!agora!rickc From: rickc@agora.UUCP (Rick Coates) Newsgroups: comp.std.c Subject: Pointer to void (was: function returning pointer to itself) Message-ID: <1066@agora.UUCP> Date: 22 Jul 88 15:52:29 GMT References: <5485@batcomputer.tn.cornell.edu> Organization: Advanced Solutions, Hillsboro, OR Lines: 21