1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if !defined(lint) && !defined(NOSCCS)
8: static char sccsid[] = "@(#)longname.c 5.1 (Berkeley) 6/7/85";
9: #endif
10:
11: # define reg register
12:
13: /*
14: * This routine fills in "def" with the long name of the terminal.
15: *
16: */
17: char *
18: longname(bp, def)
19: reg char *bp, *def; {
20:
21: reg char *cp;
22:
23: while (*bp && *bp != ':' && *bp != '|')
24: bp++;
25: if (*bp == '|') {
26: bp++;
27: cp = def;
28: while (*bp && *bp != ':' && *bp != '|')
29: *cp++ = *bp++;
30: *cp = 0;
31: }
32: return def;
33: }
Defined functions
Defined variables
sccsid
defined in line
8;
never used
Defined macros
reg
defined in line
11; used 2 times