DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

cb(CP)


cb -- C program beautifier

Syntax

cb [-s] [-j] [-l leng] [-V] [file ... ]

Description

The cb command reads syntatically correct C programs either from file or from standard input and writes them on standard output with spacing and indentation that display the structure of the C code. By default, cb preserves all user newlines. cb processes supplementary code set characters according to the locale specified in the LC_CTYPE environment variable (see LANG on environ(M)).

cb accepts the following options:


-s
Formats the code in the style of Kernighan and Ritchie found in ``The C Programming Language.''

-j
Rejoin split lines.

-l leng
Split lines that are longer than leng.

-V
Print on standard error output the version of cb invoked.

Notes

cb treats asm as a keyword.

The format of structure initializations is unchanged by cb.

Punctuation that is hidden in preprocessor directives causes indentation errors.

See also

cc(CP)

Kernighan, B. W., and Ritchie, D. M., The C Programming Language, Prentice-Hall, 1988.


© 2005 Commands for Programming (CP)
SCO OpenServer Release 6.0.0 -- 02 June 2005