cflat filters C source for easier searching.
If you are brave you might even use it on Perl code.
Basically cflat prints the source code in a tabular format where each line is prefixed with the scope of the line (usually the function declaration).
This makes it easy to filter function bodies with grep or to do interesting things with awk, perl, etc. To get a better idea look at the example below.
cflat can also strip comments (C and C++ style) and string literals.