Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site kitty.UUCP Path: utzoo!watmath!sunybcs!kitty!peter From: peter@kitty.UUCP (Peter DaSilva) Newsgroups: net.lang.c,net.unix-wizards Subject: Re: Re: casts to (void) Message-ID: <285@kitty.UUCP> Date: Fri, 9-Aug-85 12:51:29 EDT Article-I.D.: kitty.285 Posted: Fri Aug 9 12:51:29 1985 Date-Received: Sat, 10-Aug-85 02:46:46 EDT References: <11@brl-tgr.ARPA> <1288@eagle.UUCP> <15908@watmath.UUCP> Organization: Recognition Research Corp., Clarence, NY Lines: 11 Xref: watmath net.lang.c:5937 net.unix-wizards:14254 > > That's a mediocre solution, it shouldn't be necessary lint should know the > > set of standard functions which results needn't be used. It's not accept- > > able to either put (void) in front of printf(), scanf(), ...etc. or make > > defines like "#define Printf (void) printf". > > And programs that do this don't recover from write errors, like when a > filesystem runs out of space. That's what lint *correctly* complains about. OK. How about Printf(fmt,a,b,c,d,e,f,g,h,i,j,k,l) { assert(printf(fmt,...)!=FAIL); }