date and time created 82/02/02 23:09:47 by mckusick
[unix-history] / usr / src / usr.bin / pascal / libpc / PAGE.c
/* Copyright (c) 1979 Regents of the University of California */
static char sccsid[] = "@(#)PAGE.c 1.2 %G%";
#include "h00vars.h"
PAGE(curfile)
register struct iorec *curfile;
{
if (curfile->funit & FREAD) {
ERROR("%s: Attempt to write, but open for reading\n",
curfile->pfname);
return;
}
fputc('\f', curfile->fbuf);
if (ferror(curfile->fbuf)) {
PERROR("Could not write to ", curfile->pfname);
return;
}
}