DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

cb(1)


cb -- C program beautifier

Synopsis

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

Description

The cb command reads syntactically correct 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 structure of the C code. By default, it preserves all user new-lines. cb processes supplementary code set characters according to the locale specified in the LC_CTYPE environment variable (see LANG on environ(5)).

cb accepts the following options:


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

-j
Put split lines back together.

-l leng
Split lines that are longer than leng.

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

References

cc(1)

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

Notices

cb treats asm as a keyword.

The format of structure initializations is unchanged by cb.

Punctuation that is hidden in preprocessing directives causes indentation errors.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004