Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cb(1) — 4D1 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)



     CB(1)                                                       CB(1)



     NAME
          cb - C program beautifier

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

     DESCRIPTION
          The cb comand reads 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 code.  Under default options, cb preserves
          all user new-lines.

          cb 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.

     ORIGIN
          AT&T V.3





















     Page 1                                        (last mod. 8/20/87)



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