Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cb(1) — SunOS 3.2/SYS4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

indent(1)

CB(1)  —  USER COMMANDS

NAME

cb − C program beautifier

SYNOPSIS

cb [ −s ] [ −j ] [ −l leng ] [ filename ... ]

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. 

indent(1) is preferred.

OPTIONS

With no options, cb preserves all user NEWLINES. 

−s Standard C style.  Canonicalizes the code to the style of Kernighan and Ritchie in The C Programming Language.

−j Split lines are put back together. 

−l leng
Split lines longer than leng.

SEE ALSO

indent(1)

BUGS

Punctuation hidden in preprocessor statements can cause indentation errors. 

Sun Release 3.2  —  Last change: 16 April 1986

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