Commit | Line | Data |
---|---|---|
57f965d5 | 1 | #ifndef lint |
2422abab | 2 | static char sccsid[] = "@(#)cmd3.c 3.14 %G%"; |
57f965d5 EW |
3 | #endif |
4 | ||
60de5df9 EW |
5 | /* |
6 | * Copyright (c) 1983 Regents of the University of California, | |
7 | * All rights reserved. Redistribution permitted subject to | |
8 | * the terms of the Berkeley Software License Agreement. | |
9 | */ | |
10 | ||
57f965d5 | 11 | #include "defs.h" |
b2618f9d | 12 | #include "string.h" |
57f965d5 | 13 | |
0de7ca29 EW |
14 | setescape(esc) |
15 | register char *esc; | |
16 | { | |
17 | if (*esc == '^') { | |
18 | if (esc[1] != 0) | |
19 | escapec = esc[1] & 0x1f; | |
20 | else | |
21 | escapec = '^'; | |
22 | } else | |
23 | escapec = *esc; | |
24 | } | |
c0893e4e | 25 | |
c0893e4e EW |
26 | setlabel(w, label) |
27 | register struct ww *w; | |
28 | char *label; | |
29 | { | |
30 | if (w->ww_label != 0) | |
b2618f9d EW |
31 | str_free(w->ww_label); |
32 | if ((w->ww_label = str_cpy(label)) == 0) | |
85af59e4 | 33 | return -1; |
85af59e4 | 34 | return 0; |
c0893e4e | 35 | } |