xref: /plan9/sys/man/1/cb (revision ef7141bf6fd20bbc1132dfd69c9dfe3c339b3089)
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 visually 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 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.