Annotation of researchv10dc/cmd/pascal/libpc/SEEK.c, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1979 Regents of the University of California */
                      2: 
                      3: static char sccsid[] = "@(#)SEEK.c 1.3 6/17/81";
                      4: 
                      5: #include "h00vars.h"
                      6: 
                      7: /*
                      8:  * Random access routine
                      9:  */
                     10: SEEK(curfile, loc)
                     11: 
                     12:        register struct iorec   *curfile;
                     13:        struct seekptr          *loc;
                     14: {
                     15:        curfile->funit |= SYNC;
                     16:        if (fseek(curfile->fbuf, loc->cnt, 0) == -1) {
                     17:                PERROR("Could not seek ", curfile->pfname);
                     18:                return;
                     19:        }
                     20: }

unix.superglobalmegacorp.com

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