On 9/12/06, Chris Sutcliffe <[EMAIL PROTECTED]> wrote:

On 9/12/06, Chris Sutcliffe <[EMAIL PROTECTED]> wrote:
> > My Linux box indeed hasn't got "cb", but it has got "indent" which is
> > meant to beautify and reformat C code, e.g. by adding and removing
> > spaces, tabs, linefeeds and blank lines, according to various parameters
> > on a command-line and/or in a config file; GNU indent supports
> > "original", "K&R" and "GNU" styles in addition to custom style. See
> > "info indent" (where installed) for details.
>
> There is also Astyle (http://astyle.sourceforge.net/) which also
> happens to have a Windows port.
>

You can use the GNU indent utility for indenting C programs:

http://mysite.wanadoo-members.co.uk/indent/beautify.html

- Yegappan

Reply via email to