turbo-C and lint ?

Alan Grant Finlay alanf at bruce.OZ
Wed Mar 21 12:07:35 AEST 1990


In article <1990Mar20.130947.16583 at cs.eur.nl>, reino at cs.eur.nl (Reino de Boer) writes:
> 
> Doesn't Turbo-C have a built-in checking mechanism ?
> 

In article <1555 at dinl.mmc.UUCP>, noren at dinl.uucp (Charles Noren) writes:
> Turbo C combines the lint checking with its compiler, thus you can optionally
> turn on all the lint diagnostics when you compile.  The manual provides
> details on how to do this.
> -- 

Both of these were in reponse to my original query which may not have been
specific enough.  Consider the following correct program:

check(x,y)
long x;
char *y;
{
printf("%10.10s ",y);
}
main()
{
check(10l,"testing");
}

If you now remove the l after the 10 in the procedure call the compiler
issues no relevant warnings and the program misbehaves.  Can Turbo-C 
generate a warning for this kind of error?



More information about the Comp.lang.c mailing list