cb
PURPOSE
Puts C source code into a form that is easily read.
SYNOPSIS
cb [ -s ] [ -j ] [ -l leng ] [ file ... ]
DESCRIPTION
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, cb
does not split or join lines. Note that punctuation in
preprocessor statements can cause indentation errors.
FLAGS
-j Joins lines that are split.
-l length Splits lines that are longer than length.
-s Formats the source code according to the
style of Kernighan and Ritchie in The C Pro-
gramming Language. (Englewood Cliffs, New
Jersey: Prentice-Hall, Inc., 1978.).
EXAMPLE
To create a version of "pgm.c" called "pgm.pretty.c" that
is easy to read:
cb pgm.c > pgm.pretty.c
RELATED INFORMATION
The following command: "cc."
The discussion of cb in AIX Operating System Programming
Tools and Interfaces.