Puts C source code into a form that is easily read.
cb [ -s ] [ -l Length | -j ] [ File ... ]
The cb command reads C programs from standard input or from specified files and writes them to standard output in a form that shows, through indentations and spacing, the structure of the code. When called without flags, the cb command does not split or join lines. Note that punctuation in preprocessor statements can cause indentation errors.
For best results, use this command on source code that is syntactically correct.
To create a version of pgm.c called pgm.pretty.c that is easy to read, enter:
cb pgm.c > pgm.pretty.c
/usr/ccs/bin/cb | Contains the cb command. |
/usr/bin/cb | Symbolic link to the cb command. |
The indent command.