|
|
1.1 root 1: /* Copyright Bell Telephone Laboratories Whippany, N.J.
2:
3: * ***********************************
4: * ***********************************
5: * ***** COVER UP DELETED LINES ******
6: * *** R. B. Drake WH 8C-005 X4163 ***
7: * **** Fri Aug 24 17:11:58 1979 *****
8: * ***********************************
9: * ***********************************
10: * This routine is
11: * called by "bed" and used to slide the program txtbuf down when
12: * necessary to reclaim space created by the shortening of a line
13: * or by a delete
14:
15: */
16: /* "@(#) cover.c: V 1.1 12/21/80" */
17: #include "bas.h"
18: cover(f,t)
19: char *f,*t;
20:
21: {
22: register char *from,*to;
23: from=f;to=t;
24: curptr = to;
25: clear();
26: while(from != linptr)
27: *to++ = *from++;
28: linptr -= from - to;
29: *linptr = '\0';
30: *(linptr+1) = '\0';
31: *(linptr+2) = '\0'; /* two zero bytes for eof */
32: update();
33: return(0);
34: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.