CB(1)
NAME
cb − C program beautifier, formatter
SYNOPSIS
cb [ −s ] [ −j ] [ −l leng ] [ file ... ]
DESCRIPTION
Cb reads C programs either from its arguments or from the standard input and writes them on the standard output with spacing and indentation that displays the structure of the code. Under default options, cb preserves all user new-lines. Under the −s flag cb converts the code to the canonical style of Kernighan and Ritchie in The C Programming Language. The −j flag causes split lines to be put back together. The −l flag causes cb to split lines that are longer than leng.
SEE ALSO
cc(1).
The C Programming Language by B. W. Kernighan and D. M. Ritchie.
BUGS
Hidden punctuation in preprocessor statements causes indentation errors.
EXTERNAL INFLUENCES
Environment Variables
LC_CTYPE determines the interpretation of comments and string literals as single and/or multi-byte characters.
If LC_CTYPE is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable. If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting cb behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989