Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)



          CB(1)                INTERACTIVE UNIX System                CB(1)



          NAME
               cb - C program beautifier

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

          DESCRIPTION
               The cb command reads C programs either from its arguments or
               from the standard input and writes them on the standard out-
               put with spacing and indentation that display the structure
               of the code.  Under default options, cb preserves all user
               new-lines.

               The cb command accepts the following options:

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

               -j          Causes split lines to be put back together.

                -l leng    Causes cb to split lines that are longer than
                           leng.

          SEE ALSO
               cc(1).
               Kernighan, B. W., and Ritchie, D. M., The C Programming
               Language, Prentice-Hall, 1978.

          BUGS
               Punctuation that is hidden in preprocessor statements will
               cause indentation errors.
























          Rev. C Software Development Set                            Page 1



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