Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!mips!pacbell.com!pacbell!att!dptg!pegasus!hansen From: hansen@pegasus.ATT.COM (Tony L. Hansen) Newsgroups: comp.sources.d Subject: Re: Lint like util for printf and friends Summary: SVr4 lint knows about printf, etc. Keywords: lint, printf, varargs Message-ID: <5034@pegasus.ATT.COM> Date: 7 Sep 90 22:00:30 GMT References: Reply-To: hansen@pegasus.ATT.COM (Tony L. Hansen) Organization: AT&T Bell Labs NJ USA Lines: 11 < Does anyone know of a lint like tool that will check the matchup of the < format string of printf (or any varargs function /w a format string) to < it's arguments? I'd like to get ahold of such a utilitiy. The System V release 4 version of lint knows about printf and scanf formats. It also provides a /*PRINTFLIKEn*/ and /*SCANFLIKEn*/ lint pragma so that you can indicate other functions which also accept printf formats. Tony Hansen att!pegasus!hansen, attmail!tony hansen@pegasus.att.com