UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: cutChapter 2
Unix Commands
Next: Reference: date
 

cxref

cxref [options] files

Build a cross-reference table for each of the C source files. The table lists all symbols, providing columns for the name and the associated function, file, and line. In the table, symbols are marked by = if assigned, - if declared, or * if defined. cxref also accepts the cc options -D, -I, and -U.

Options

-c

Report on all files in a single table.

-C

Don't execute the second pass of cxref; save output from first pass in .cx files. (Like -c in lint and cc.)

-d

Simplify report by omitting print declarations.

-F

Print files using full pathname, not just the filename.

-l

Don't print local variables.

-L[n]

Limit the LINE field to n columns (default is 5).

-o file

Send output to file.

-s

Silent mode; don't print input filenames.

-t

Format for 80-column listing.

-V

Print version information on standard error.

-w[n]

Format for maximum width of n columns (default is 80; n must be more than 50).

-Wn1,n2,n3,n4

Set the width of each (or any) column to n1, n2, n3, or n4 (respective defaults are 15, 13, 15, and 20). Column headings are NAME, FILE, FUNCTION, and LINE, respectively.


Previous: Reference: cutUNIX in a Nutshell: System V EditionNext: Reference: date
Reference: cutBook IndexReference: date

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System