/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)READ4.c 1.6 4/9/82";
register struct iorec
*curfile
;
if (curfile
->funit
& FWRITE
) {
ERROR("%s: Attempt to read, but open for writing\n",
retval
= fscanf(curfile
->fbuf
, "%ld", &data
);
ERROR("%s: Tried to read past end of file\n", curfile
->pfname
);
ERROR("%s: Bad data found on integer read\n", curfile
->pfname
);
ERROR("%s: Overflow on integer read\n", curfile
->pfname
);