Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cb(CP) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          cb - C program beautifier

     Syntax
          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
          output 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(CP)
          Kernighan, B. W., and Ritchie, D. M., The C Programming
          Language, Prentice-Hall, 1978.

     Notes
          Punctuation that is hidden in preprocessor statements will
          cause indentation errors.
                                                (printed 6/18/89)



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