indent
http://www.gnu.org/software/indent/
Introduction to Indent
The `indent' program can be used to make code easier to read. It can also convert from one style of writing C to another.
`indent' understands a substantial amount about the syntax of C, but it also attempts to cope with incomplete and misformed syntax.
Downloading Indent
Indent can be found on in the subdirectory /gnu/indent/ on your favorite GNU mirror. For other ways to obtain Indent, please read How to get GNU Software.