unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



cb(1)									cb(1)



NAME

  cb - Converts	C source code into a readable form

SYNOPSIS

  cb [-js] [-llength] [file...]

  The cb command reads C programs from standard	input or from specified	files
  and writes them to standard output in	a form that shows, through indenta-
  tions	and spacing, the structure of the code.

OPTIONS

  -j  Joins split lines.

  -llength
      Splits lines that	are longer than	length bytes.

  -s  Formats the source code according	to the style of	Kernighan and Ritchie
      in The C Programming Language (Prentice-Hall, Inc., 1978;	Englewood
      Cliffs, New Jersey.)

DESCRIPTION

  When called without options, the cb command does not split or	join lines.
  Note that punctuation	in preprocessor	statements can cause indentation
  errors.

EXAMPLES

  To create a version of pgm.c called pgm.pretty.c that	is easy	to read, with
  no lines longer than 60 bytes, enter:

       cb -l60 pgm.c >> pgm.pretty.c

SEE ALSO

  Commands:  indent(1)