Path: utzoo!utgpu!watserv1!watmath!att!rutgers!tut.cis.ohio-state.edu!snorkelwacker!bu.edu!mirror!necntc!necssd!harrison From: harrison@necssd.NEC.COM (Mark Harrison) Newsgroups: comp.lang.c Subject: Re: Can lint help an ANSI-C programmer? Message-ID: <369@necssd.NEC.COM> Date: 4 Jun 90 14:50:34 GMT References: <6328.265D8157@puddle.fidonet.org> <1754@tkou02.enet.dec.com> Organization: NEC America Inc. SSD, Irving, TX Lines: 18 In article , ghoti+@andrew.cmu.edu (Adam Stoller) writes: > You may not care about the return value - but does your compiler take > the time to warn you that you didn't supply a needed argument to the > printf() call?? > > (does lint warn about this?) Gimpel {PC,Flexe}-Lint checks printf/scanf strings. printf("a[%d] = %d\n", a[i]) will get a warning. When we checked our 70,000 line project (at a former company), we found five or six problems like this, almost exclusively in fatal error reporting code. -- Mark Harrison harrison@necssd.NEC.COM (214)518-5050 {necntc, cs.utexas.edu}!necssd!harrison standard disclaimers apply...