Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rtp47.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!mcnc!rti-sel!rtp47!meissner From: meissner@rtp47.UUCP (Michael Meissner) Newsgroups: net.lang.c Subject: Re: casts to (void) Message-ID: <116@rtp47.UUCP> Date: Mon, 29-Jul-85 09:13:19 EDT Article-I.D.: rtp47.116 Posted: Mon Jul 29 09:13:19 1985 Date-Received: Wed, 31-Jul-85 04:59:53 EDT References: <11@brl-tgr.ARPA> <1288@eagle.UUCP> <15908@watmath.UUCP> Reply-To: meissner@rtp47.UUCP (Michael Meissner) Organization: Data General, RTP, NC Lines: 18 Keywords: lint Whenever I use things like printf with lint, I define things like: #define Printf (void) printf #define Fputs (void) fputs /* ... */ Printf("Hello World!\n"); Which translates to: (void) printf("Hello World!\n"); Thus lint is kept happy, and my program is not cluttered up with casts to void. Michael Meissner Data General ...{ inhp4, decvax }!mcnc!rti-sel!rtp47!meissner