written by Kirk McKusick; add Berkeley specific copyright notice
[unix-history] / usr / src / usr.bin / pascal / libpc / PAGE.c
/*-
* Copyright (c) 1979 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)PAGE.c 1.3 (Berkeley) %G%";
#endif /* not lint */
#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;
}
}