Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

acc(1)

cc(1)



  cb(1)                               CLIX                               cb(1)



  NAME

    cb - Runs the C program beautifier

  SYNOPSIS

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

  FLAGS

    -s        Standardizes 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.

  DESCRIPTION

    The cb command reads C programs either from its arguments or from stdin
    and writes them on stdout with spacing and indentation that displays the
    structure of the code.  Under default flags, cb preserves all user
    newlines.

  EXAMPLES

    To format file in the Kernighan and Ritchie style and writes the output to
    file.new:

    cb -s < file >file.new


  CAUTIONS

    Punctuation marks hidden in preprocessor statements cause indentation
    errors.

  EXIT VALUES

    Exits with 0 is successful; otherwise, exits with 1.

  RELATED INFORMATION

    Commands:  acc(1), cc(1)










  2/94 - Intergraph Corporation                                              1




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