cxref - generate a C program cross-reference
cxref [ -c ] [ -w [ num ] ] [ -o filename ] [ -t ] filenames
SYSTEM V SYNOPSIS
/usr/5bin/cxref [ -c ] [ -w [ num ] ] [ -o filename ] [ -t ] filenames
This command is available with the System V software installation
option. Refer to for information on how to install optional software.
cxref analyzes a collection of C files and attempts to build a cross-
reference table. cxref utilizes a special option of cpp(1) 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 con-
tains an asterisk (*) before the declaring reference.
SYSTEM V DESCRIPTION
The System V version of cxref, run as /usr/5bin/cxref, makes the C pre-
processor search for include files in /usr/5include before searching
for them in /usr/include.
In addition to the -D, -I and -U options (which are identical to their
interpretation by cc(1V)), the following options are interpreted by
-c Print a combined cross-reference of all input files.
-w[ num ] Width option which formats output no wider than num
(decimal) columns. This option will default to 80 if
num is not specified or is less than 51.
-o filename Direct output to named file.
-s Operate silently; does not print input file names.
-t Format listing for 80-column width.
Error messages are unusually cryptic, but usually mean that you cannot
compile these files, anyway.
While the compiler allows 8-bit strings and comments, 8-bits are not
allowed anywhere else. See cc(1V) for an explanation about why cc is
not 8-bit clean.
cxref considers a formal argument in a #define macro definition to be a
declaration of that symbol. For example, a program that #includes
ctype.h, will contain many declarations of the variable c.
16 September 1989 CXREF(1V)