Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!geacc022%timevx@CIT-HAMLET.ARPA From: geacc022%timevx@CIT-HAMLET.ARPA Newsgroups: net.lang.c Subject: casts to (void) Message-ID: <11@brl-tgr.ARPA> Date: Fri, 19-Jul-85 05:54:53 EDT Article-I.D.: brl-tgr.11 Posted: Fri Jul 19 05:54:53 1985 Date-Received: Sat, 20-Jul-85 12:33:52 EDT Sender: news@brl-tgr.ARPA Lines: 18 Why should a cast to (void) be necessary in a statement like (void) printf("foo\n"); ? Why not say that the expression in the definition = ";" is automatically cast to type void? I put the casts to void in because they keep lint happy, but I'll be the first to say they look ugly and impair readability...and why are they really necessary, anyway? Gary Ansok GEACC022%TIMEVX @ CIT-HAMLET.ARPA GEA @ CALTECH.BITNET ...ucbvax!cithep!timevx#geacc022 "All the world loves a straight man."