lint: C Program Syntax Checker
Next: Exercises
Up: Tools
Previous: cb: C Beautifier
lint prog.c
OR
cc -wlint prog.c (on IRIX 5.x)
will scrutinize prog.c for syntax errors and wasteful constructs.
lint is very picky about how a C program is written.
Among other things, it ensures that
- Any variable created is used.
- Every program has an exit point.
- Any declared function is used.
Super-User
Fri Feb 17 15:55:40 EST 1995