tags:

views:

313

answers:

3

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
That's a very nice program by the sound of it. Does it have a home page somewhere?
Michael Myers
Yes, that's it, thanks!
Karolis
sigjuice
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