NAME

clist - generate listing of C/C++ code

SYNOPSIS

clist [-t n] [file...]

DESCRIPTION

clist outputs C or C++ source code, prefixing each line with the line number and the nesting level of '{'. The prefix will be replaced by blank characters on lines containing no code.

OPTIONS

The following options are supported:

-t  n
Expand tab characters as if tab-stops were every n columns (defaults to 8).

OPERANDS

The following operands are supported:

file
A pathname of a file to be read. If no file operands are specified, the standard input shall be used.

EXIT STATUS

0 no error.
2 One of the input files could not be opened.
3 Hardware error on standard out.

BUGS

Ignores pre-processor declarations, and can easily get confused if conditionally compiled code contains '{' or '}' characters.