date and time created 80/10/31 14:39:48 by mckusick
[unix-history] / usr / src / usr.bin / pascal / libpc / SEEK.c
CommitLineData
7cc3480b
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
3static char sccsid[] = "@(#)SEEK.c 1.1 %G%";
4
5#include "h00vars.h"
6#include "h01errs.h"
7
8/*
9 * Random access routine
10 */
11SEEK(curfile, loc)
12
13 register struct iorec *curfile;
14 long loc;
15{
16 curfile->funit |= SYNC;
17 if (fseek(curfile->fbuf, loc, 0) == -1) {
18 ERROR(ESEEK, curfile->pfname);
19 return;
20 }
21}