man(1) Manual page archive


     CB(1)                                                       CB(1)

     NAME
          cb - C program beautifier

     SYNOPSIS
          cb [ option ... ] [ file ... ]

     DESCRIPTION
          Cb reads C programs either from the named files or from the
          standard input and writes them on the standard output with
          spacing and indentation that displays the structure of the
          code.  The options are:

          -s   Place newlines as in Kernighan and Ritchie.  (Original
               newlines are preserved by default.)

          -j   Join split lines.

          -l leng
               Split lines that are longer than leng, 120 by default.

     SEE ALSO
          pr(1), troff(1), lp(1), font(6)
          B. W. Kernighan and D. M. Ritchie, The C Programming
          Language, Prentice-Hall, 1988.

     BUGS
          Punctuation hidden in preprocessor statements causes cb to
          make indentation errors.