Anybody here use splint?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
what is it.. I have a feeling its some kind of debugging tool..
splint is a anal retentive syntax checker for C.
An example of what it might yell about:
It would yell because printf() returns a value so it wants you to do:Code:printf("%d\n", x);
I use it when I want to really check my code for any problems.Code:(void)printf("%d\n", x);
Note: It checks for things like security problems and such in the code also.
I was just curious about it - I have heard that using the -Wall option (on gcc of course) is a rough equivalent to the checking lint will do - the guys that do splint figure that you can do a little better with splint than lint - looks kind of like what Thantos said - really anal on syntax. It seems that for normal programming stuff its a little overkill though?
Last edited by kermit; 04-10-2004 at 03:37 PM.