clist - generate listing of C/C++ code
clist [-t n] [file...]
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.
The following options are supported:
- -t n
- Expand tab characters as if tab-stops were every n columns (defaults to 8).
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.
0 no error. 2 One of the input files could not be opened. 3 Hardware error on standard out.
Ignores pre-processor declarations, and can easily get confused if conditionally compiled code contains '
{
' or '}
' characters.