Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (1) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

CB(1)

NAME

­cb − C program beautifier

SYNOPSIS

cb [-s] [-j] [-l length] [file ...]

DESCRIPTION

Cb reads syntactically correct C programs from from its input or the given files, and writes them to its stdout with a more visualy pleasing spacing and indentation. Cb understands no C++ syntax bar newline terminated comments; and by default all user new-lines are preserved in the output. 

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 length
Split lines that are longer than length. 

SOURCE

­/sys/src/cmd/cb

NOTES

The format of structure initializations is unchanged by cb. 
Punctuation that is hidden in preprocessing directives causes indentation errors.

Plan 9  —  September 17, 2003

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