|
|
1.1 root 1: # define reg register
2:
3: /*
4: * This routine fills in "def" with the long name of the terminal.
5: */
6: char *
7: longname(bp, def)
8: reg char *bp, *def; {
9:
10: reg char *cp;
11:
12: while (*bp && *bp != ':' && *bp != '|')
13: bp++;
14: if (*bp == '|') {
15: bp++;
16: cp = bp;
17: while (*cp && *cp != ':' && *cp != '|')
18: cp++;
19: *cp = 0;
20: return bp;
21: }
22: return def;
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.