Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cb(1) — ProWorks Compilers 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acc(1)

cc(1)

cb(1)

NAME

cb − C program beautifier

SYNOPSIS

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

DESCRIPTION

The cb comand 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, cb preserves all user new-lines. 

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. 

NOTES

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. 

SEE ALSO

acc(1) (Solaris 2.x only), cc(1) (Solaris 1.x only)
Kernighan, B. W., and Ritchie, D. M., The C Programming Language, Second Edition, Prentice-Hall, 1988.

SunOS 3.0.1  —  Last change: 30 June 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026