CB(1-SysV) RISC/os Reference Manual CB(1-SysV)
NAME
cb - C program beautifier
SYNOPSIS
cb [ -s ] [ -j ] [ -l leng ] [ file ... ]
DESCRIPTION
The cb comand reads C programs either from its arguments or
from the standard input, and writes them on the standard
output with spacing and indentation that display the struc-
ture of the code. Under default options, cb preserves all
user new-lines.
cb accepts the following options.
-s Canonicalizes the code to the style of
Kernighan and Ritchie in The C Program-
ming Language.
-j Causes split lines to be put back
together.
-l leng Causes cb to split lines that are longer
than leng.
SEE ALSO
cc(1).
The C Programming Language. Prentice-Hall, 1978.
ERRORS
Punctuation that is hidden in preprocessor statements will
cause indentation errors.
Structure assignments are not handled properly. The braces
({}) are treated like other braces in that they cause inden-
tation.
Printed 1/15/91 Page 1