xref: /csrg-svn/usr.bin/pascal/libpc/BUFF.c (revision 40865)
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  */
71640Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)BUFF.c	1.5 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111640Smckusick 
121640Smckusick #include "h00vars.h"
131640Smckusick 
141640Smckusick BUFF(amount)
151640Smckusick 
162995Smckusic 	long		amount;
171640Smckusick {
181640Smckusick 	struct iorec	*curfile;
1934623Smckusick 	static char	sobuf[BUFSIZ];
201640Smckusick 
211640Smckusick 	curfile = OUTPUT;
221640Smckusick 	if (amount == 0)
235210Smckusic 		setbuf(ACTFILE(curfile), 0);
241640Smckusick 	else if (amount == 2)
2534623Smckusick 		setbuf(ACTFILE(curfile), sobuf);
261640Smckusick }
27