The lint program checker has proven time and again to be one of the best tools for finding portability problems and certain types of coding errors in C programs. This book introduces you to lint, guides you through running it on your programs, and helps you to interpretlint's output.lint verifies a program or program segments against standard libraries, checks the code for common portability errors, and tests the programming against some tried and true guidelines. linting your code is a necessary (though not sufficient) step in writing clean, portable, effective programs.Contents include:
Overview of using lint
Dealing with lint' concerns: casting and delinting
Using lint in detail: command line options, using lint with make, rolling your own lint library
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal featured on the cover of Checking C Programs with lint is a kiwi, a small flightless bird native to New Zealand. The kiwi is chicken sized, 3 to 9 pounds in weight, with a thick plumage of dark brown-grey feathers. The feathers, like the kiwiUs wings, are undevelopedQthe feathers resemble coarse hair and the wings are only two inches long and lack flight feathers. The kiwi has a long bill which it uses for probing the soil of its forest environment for insects and worms, which, in conjunction with snails, make up its diet. The kiwi is active only at night, sleeping or hiding in thickets or burrows during the day.In spite of the kiwi being a very fast runner, the kiwi population has decreased seriously in recent years due to the introduction of non-native predators to New Zealand. Both domestic and wild animals, primarily dogs, cats, and ferrets, are taking their toll on the native bird population. UNIX and its attendant programs can be unruly beasts. Nutshell Handbooks(R) help you tame them....Edie Freedman designed this cover and the entire UNIX bestiary that appears on other Nutshell Handbooks. The beasts themselves are adapted from 19th-century engravings from the Dover Pictorial Archive.The text of this book is set in Times Roman; headings are Helvetica; examples are Courier. Text was prepared using SoftQuad's sqtroff text formatter. Figures are produced with a Macintosh. Printing is done on an Apple LaserWriter.