Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.16 $; site mirror.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!mirror!rs From: rs@mirror.UUCP Newsgroups: net.unix-wizards Subject: Re: lint and (void)printf Message-ID: <13400013@mirror.UUCP> Date: Wed, 14-Aug-85 09:58:00 EDT Article-I.D.: mirror.13400013 Posted: Wed Aug 14 09:58:00 1985 Date-Received: Tue, 20-Aug-85 21:53:07 EDT Lines: 18 Nf-ID: #N:mirror:13400013:000:717 Nf-From: mirror!rs Aug 14 09:58:00 1985 (The original article came in as an "Orphaned Response," and since I run notes...) If you don't want to clutter up your code with casting *printf results to void, then just change the lint library specification so that these functions don't return a value. If you're paranoid, you can put it in a different library so that people say, e.g., -lcareless in their command line. In particular, I strongly recommend that you do this for sprintf() in the standard library to catch anyone who tries to use the "return value" -- in BSD and USG they're very, very different! -- Rich $alz {mit-eddie, ihnp4!inmet, wjh12, cca, datacube} !mirror!rs Mirror Systems 2067 Massachusetts Ave. 617-661-0777 Cambridge, MA, 02140