lint suggestion

Guy Harris guy at gorodish.Sun.COM
Mon Feb 8 18:01:55 AEST 1988


> Why not check that the arguments are consistent with the format?

The System V "lint" libraries contain items of the form:

		/*VARARGS1 PRINTFLIKE1*/
	int	printf(s) char *s; { return (0); }

Unfortunately, the System V "lint" doesn't implement "PRINTFLIKE".  However, a
Ninth Edition manual I saw did document "PRINTFLIKE", so maybe it is
implemented there; then again, "NOSTRICT" was documented in some versions of
the "lint" manual page although it wasn't implemented.
	Guy Harris
	{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
	guy at sun.com



More information about the Comp.lang.c mailing list