* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)VWRITEF.c 8.1 (Berkeley) %G%";
VWRITEF(curfile
, file
, format
, args
)
register struct iorec
*curfile
;
if (curfile
->funit
& FREAD
) {
ERROR("%s: Attempt to write, but open for reading\n",
vfprintf(file
, format
, args
);
if (ferror(curfile
->fbuf
)) {
PERROR("Could not write to ", curfile
->pfname
);