xref: /csrg-svn/usr.bin/pascal/libpc/BUFF.c (revision 62092)
140865Sbostic /*-
2*62092Sbostic  * Copyright (c) 1979, 1993
3*62092Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71640Smckusick 
840865Sbostic #ifndef lint
9*62092Sbostic static char sccsid[] = "@(#)BUFF.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111640Smckusick 
121640Smckusick #include "h00vars.h"
131640Smckusick 
BUFF(amount)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