projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
change over to new error message format
[unix-history]
/
usr
/
src
/
usr.bin
/
pascal
/
libpc
/
SEEK.c
/* Copyright (c) 1979 Regents of the University of California */
static char
sccsid
[] =
"@(#)SEEK.c 1.2 %G%"
;
#include
"h00vars.h"
/*
* Random access routine
*/
SEEK
(
curfile
,
loc
)
register
struct
iorec
*
curfile
;
long
loc
;
{
curfile
->
funit
|=
SYNC
;
if
(
fseek
(
curfile
->
fbuf
,
loc
,
0
) == -
1
) {
PERROR
(
"Could not reset "
,
curfile
->
pfname
);
return
;
}
}