Annotation of researchv10no/cmd/basic/bite/src/clear.c, revision 1.1.1.1

1.1       root        1: /* Copyright Bell Telephone Laboratories Whippany, N.J.
                      2: 
                      3:  *     ***********************************
                      4:  *     ***********************************
                      5:  *     ****** CLEAR THE PAGE INDEX *******
                      6:  *     *** R. B. Drake WH 8C-005 X4163 ***
                      7:  *     **** Fri Aug 24 17:07:40 1979 *****
                      8:  *     ***********************************
                      9:  *     ***********************************
                     10:  * This routine is used
                     11:  * as part of the houskeeping required to keep the page index
                     12:  * updated, the page index must sometimes be cleared from the
                     13:  * current page up 
                     14: 
                     15: */
                     16: /*   "@(#) clear.c:  V 1.1  12/21/80" */
                     17: #include "bas.h"
                     18: extern int pg;
                     19: clear()
                     20: {
                     21: int i;
                     22:        pg = (curptr - txtbuf ) /PGSIZ;
                     23:        for(i=pg;i<32;i++)
                     24:                index[i].maxlin = 0;
                     25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.