|
|
1.1 root 1: /* @(#) longname.c: 1.1 10/15/83 (1.3 4/21/82) */
2:
3: /*
4: * This routine returns the long name of the terminal.
5: */
6: char *
7: longname()
8: {
9: register char *cp;
10: extern char ttytype[];
11:
12: for (cp=ttytype; *cp++; ) /* Go to end of string */
13: ;
14: while (*--cp != '|' && cp>=ttytype) /* Back up to | or beginning */
15: ;
16: return ++cp;
17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.