/*- * Copyright (c) 1979, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)APPEND.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ #include "h00vars.h" APPEND(filep) register struct iorec *filep; { filep = GETNAME (filep, 0, 0, 0); filep->fbuf = fopen(filep->fname, "a"); if (filep->fbuf == NULL) { PERROR("Could not open ", filep->pfname); return; } filep->funit |= (EOFF | FWRITE); if (filep->fblk > PREDEF) { setbuf(filep->fbuf, &filep->buf[0]); } }