cxref(1) General Commands Manual cxref(1)
Name
cxref - generate C program cross reference
Syntax
cxref [options] files
Description
The command analyzes a collection of C files and attempts to build a cross reference table. The command utilizes a special version of to
include #define'd information in its symbol table. It produces a listing on standard output of all symbols (auto, static, and global) in
each file separately, or with the -c option, in combination. Each symbol contains an asterisk (*) before the declaring reference.
Options
-c Prints a combined cross-reference of all input files.
-Dname Defines name to processor, as if by #define. Default value is 1.
-Idir Searches named directory for files whose names do not begin with a backslash (/).
-o file Directs output to named file.
-s Operates silently; does not print input file names.
-t Formats listing for 80-column width.
-Uname Removes any initial definition of name.
-w<num> Width option which formats output no wider than <num> (decimal) columns. This option will default to 80 if <num> is not speci-
fied or is less than 51.
Diagnostics
Error messages usually indicate a problem that will prevent the file from compiling.
Files
/usr/lib/xcpp special version of C-preprocessor.
See Also
cc(1).
cxref(1)