Article View: comp.std.c
Article #1145Re: Is "void f(int i) { return (void)i; }" legal?
From: Leif Andrew Rump
Date: Fri, 13 Apr 1990 14:14
Date: Fri, 13 Apr 1990 14:14
13 lines
1081 bytes
1081 bytes
rfg@paris.ics.uci.edu (Ronald Guilmette) writes:
>For those who missed the subject line, I'd like to know if this is legal:
> void f (int i) { return (void) i; }
As Doug Gwyn (i think it was) correctly states is it illegal _but_
it is a bit puzzling at first to see that void * is legal but I sure
rather want that than char * as it was in malloc and other in the past
Leif Andrew Rump, AmbraSoft A/S, Stroedamvej 50, DK-2100 Copenhagen OE, Denmark
UUCP: andrew@ambra.dk (Please note name change), phone: +45 39 27 11 77
Currently at SAS (Scandinavian Airline Systems), phone: +45 32 32 22 79
> > Read oe as: o <backspace> / (slash) and OE as O <backspace> / (slash) < <
Technical Details
Message-ID:
<1841@ambush.dk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!ambush!andrewReferences:
<261E9779.25257@paris.ics.uci.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!ambush!andrew
From: andrew@ambush.dk (Leif Andrew Rump)
Newsgroups: comp.std.c
Subject: Re: Is "void f(int i) { return (void)i; }" legal?
Message-ID: <1841@ambush.dk>
Date: 13 Apr 90 14:14:58 GMT
References: <261E9779.25257@paris.ics.uci.edu>
Organization: AmbraSoft, Holte, Denmark
Lines: 13