lint
lint is a useful utility that checks programs more thoroughly that gcc or other compilers
Usage:
lint file1 [file2] ...
% cat main.c
#include <stdio.h>
void main()
{
int i;
printf("Hello\n");
}
% lint main.c
variable unused in function:
(5) i in main
function returns value
which is always ignored:
printf
Previous slide
Back to first slide
View graphic version