I remember from some time ago reading about a commandline tool that explains C code, does anyone know what it might be named?
+11
A:
Perhaps you mean cdecl, a program that can translate complicated declarations to English and back?
e.g.
cdecl> explain int (*(*foo)(int ))(float )
declare foo as pointer to function (int) returning pointer to function (float) returning int
sigjuice
2009-03-20 18:26:08
That's a very nice program by the sound of it. Does it have a home page somewhere?
Michael Myers
2009-03-20 18:29:43
Yes, that's it, thanks!
Karolis
2009-03-20 18:45:26
sigjuice
2009-03-20 18:51:17
A:
If you mean explaining then I think the answers already been given. If you mean looking for potential problems then there's lint and its variants, first stop in any code review.
Ghoti
2009-03-20 20:09:35
A:
http://en.wikipedia.org/wiki/Lint_programming_tool
Edit: http://stackoverflow.com/questions/632057/c-c-free-alternative-to-lint
HTH
plan9assembler
2009-04-05 04:27:28