View Single Post
  #8   (View Single Post)  
Old 8th May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,546
Default

Quote:
Originally Posted by corey_james View Post
I have a VERY short attention span and i wish you would consider this next time you make a post!
Short attention span and programming in C? Oh boy is that a strange mixture of dangling pointers ;-)




I usually feed code though lint with various switches (and note the changes in output) on both my FreeBSD and OpenBSD systems as well as compiling with the desired warning levels and testing the program on both.


Ever since I had a program that was executing normal on one BSD but segfaulting on the other due to a coding oversight on my part -- I've tested on both, less it happen again ;-)


lint's feedback should be taken with a grain of salt: people know better then programs, otherwise UNIX would've been a precursor to automated PacMan.

Depending on your implementation of lint and how much of current standards you're allowed to use, it can produce some 'interesting' outputs. And it really does help to have a human being figure it whats valid shouting and whats just background noise.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 8th May 2008 at 06:51 PM.
Reply With Quote