1*40865Sbostic /*- 2*40865Sbostic * Copyright (c) 1979 The Regents of the University of California. 3*40865Sbostic * All rights reserved. 4*40865Sbostic * 5*40865Sbostic * %sccs.include.redist.c% 6*40865Sbostic */ 71727Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)APPEND.c 1.3 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 111727Smckusick 121727Smckusick #include "h00vars.h" 131727Smckusick 141727Smckusick APPEND(filep) 151727Smckusick 161727Smckusick register struct iorec *filep; 171727Smckusick { 181727Smckusick filep = GETNAME (filep, 0, 0, 0); 191727Smckusick filep->fbuf = fopen(filep->fname, "a"); 201727Smckusick if (filep->fbuf == NULL) { 213869Smckusic PERROR("Could not open ", filep->pfname); 221727Smckusick return; 231727Smckusick } 241727Smckusick filep->funit |= (EOFF | FWRITE); 251727Smckusick if (filep->fblk > PREDEF) { 261727Smckusick setbuf(filep->fbuf, &filep->buf[0]); 271727Smckusick } 281727Smckusick } 29