This chapter explains how you can use the lint program to check your C code for errors that may cause a compilation failure or unexpected results at runtime. In many cases, lint warns you about incorrect, error-prone, or nonstandard code that the compiler does not necessarily flag.
The lint program issues every error and warning message produced by the C compiler. It also issues warnings about potential bugs and portability problems. Many messages issued by lint can assist you in improving your program’s effectiveness, including reducing its size and required memory.
The lint program uses the same locale as the compiler and the output from lint is directed to stderr. See 4.6.3 lint Filters for more information on and examples of how to use lint to check code before you perform type-based alias-disambiguation.