Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cb(CP) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(CP)


 cb(CP)                         6 January 1993                         cb(CP)


 Name

    cb - C program beautifier

 Syntax

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

 Description

    The cb command reads C programs either from file or from standard input
    and writes them on standard output with spacing and indentation that dis-
    play the structure of the code.  Under default options, cb preserves all
    user newlines.

    cb accepts the following options:

    -s          Formats the code in the style of Kernighan and Ritchie in
                ``The C Programming Language.''

    -j          Rejoin split lines.

    -l leng     Split lines that are longer than leng.  By default, cb splits
                lines that are longer than 120 characters.

    -t leng     Interpret tabs as being leng characters long.  By default, cb
                treats tabs as being 8 characters in length.

 Notes

    Punctuation that is hidden in preprocessor statements will cause indenta-
    tion errors.

 See also

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


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