Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ex(1)

vi(1)

CTAGS(1)  —  Unix Programmer’s Manual

NAME

ctags − maintain a tags file for a C program

SYNOPSIS

ctags [ −auw ] name ... 

DESCRIPTION

Ctags makes a tags file for ex(1) from the specified C programs. A tags file gives the locations of specified objects (in this case functions) in a group of files. Each line of the tags file contains the function name, the file in which it is defined, and a scanning pattern used to find the function definition.  These are given in separate fields on the line, separated by blanks or tabs.

The −a option causes the output to be appended to the tags file instead of rewriting it. 

The −u option causes the specified files to be updated in tags, that is, all references to them are deleted, and the new values are appended to the file.  This option implies the −a option. 

The −w option suppresses warning diagnostics. 

The tag main is treated specially.  The tag formed is created by prepending M to the name of the file, with a trailing .c removed, if any, and leading pathname components also removed.  This makes use of ctags practical in directories with more than one program. 

FILES

tagsoutput tags file

SEE ALSO

ex(1), vi(1)

BUGS

In a directory with only one main, the tag main will still not be created. 

3rd Berkeley Distribution  —  8/9/79

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026