4.3BSD/usr/ingres/source/monitor/clear.c

Compare this file to the similar file:
Show the results in this format:

# include	"monitor.h"
# include	<ingres.h>
# include	<aux.h>
# include	<sccs.h>

SCCSID(@(#)clear.c	8.1	12/31/84)



/*
**  Clear query buffer
**	Flag f is set if called explicitly (with \q) and is
**	clear if called automatically.
**
**	Uses trace flag 3
*/

clear(f)
{
	Autoclear = 0;

	/* TRUNCATE FILE & RETURN */
	if (freopen(Qbname, "w", Qryiop) == NULL)
		syserr("clear: open");
	if (Nodayfile >= 0 && f)
		printf("\07go\n");
	if (f)
		clrline(0);
	Notnull = 0;
}