A tool to find your way in C sources
cscope
is a commercial tool, available from AT&T. It creates an index file
from C sources and allows interactive queries like listing all lines
which call a specific function or identifier.
Although it is a very handy tool, there is one problem: Student purses
cringe away from the word `commercial' alone. :-/ As a conclusion, I
decided to implement a free and small clone which implements certain
functions of cscope: cs.
cs offers the following functions:
- find C symbol
- find functions called from a certain function
- find functions calling a certain function
- find string literals
- find files #including a certain header file
- find file
- find POSIX naming violations
- execute shell command
The found lines will be displayed. Besides browsing through
them, cs allows to edit them using your favourite editor.
If you frequently grep for identifiers and edit the found files,
then cs is for you. It can further be used as back end to
cbrowser.
Cs should work on any system, that supports the following:
- POSIX
- ANSI C
- SYSV curses library
You can get the latest version from
ftp://cantor.informatik.rwth-aachen.de/pub/unix/cs.tar.gz.
a href="http:../index.html">Michael Haardt