version 1.4, 2001/01/29 01:58:09 |
version 1.5, 2001/05/23 22:20:36 |
|
|
|
|
/* for each line, go to beginning and insert the prefix string */ |
/* for each line, go to beginning and insert the prefix string */ |
while (nline--) { |
while (nline--) { |
(VOID)gotobol(FFRAND, 1); |
(void)gotobol(FFRAND, 1); |
for (prefix = prefix_string; *prefix; prefix++) |
for (prefix = prefix_string; *prefix; prefix++) |
(VOID)linsert(1, *prefix); |
(void)linsert(1, *prefix); |
(VOID)forwline(FFRAND, 1); |
(void)forwline(FFRAND, 1); |
} |
} |
(VOID)gotobol(FFRAND, 1); |
(void)gotobol(FFRAND, 1); |
return TRUE; |
return TRUE; |
} |
} |
|
|
|
|
s = ereply("Prefix string (default %s): ", |
s = ereply("Prefix string (default %s): ", |
buf, sizeof buf, prefix_string); |
buf, sizeof buf, prefix_string); |
if (s == TRUE) |
if (s == TRUE) |
(VOID)strcpy(prefix_string, buf); |
(void)strcpy(prefix_string, buf); |
/* CR -- use old one */ |
/* CR -- use old one */ |
if ((s == FALSE) && (prefix_string[0] != '\0')) |
if ((s == FALSE) && (prefix_string[0] != '\0')) |
s = TRUE; |
s = TRUE; |