xref: /plan9/sys/man/1/cb (revision e06f534bbaa4097bc6f4764ef1dd2dc3338fbd40)
CB 1
NAME
cb - C program beautifier
SYNOPSIS
cb [ -js ] [ -l length ] [ file ... ]
DESCRIPTION
Cb reads syntactically correct C programs from from its input or the given files, and writes them to its stdout with a more visualy pleasing spacing and indentation. Cb understands no C++ syntax bar newline terminated comments; and by default all user new-lines are preserved in the output.

The options are:

-j Join split lines.

-s Print code in the so-called K&R style used in "The C Programming Language" .

-l length Split lines that are longer than length .

SOURCE
/sys/src/cmd/cb
BUGS
Cb does not reformat structure initializers.

Punctuation hidden in macros can cause indentation errors.