Path: 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 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 / (slash) and OE as O / (slash) < <