1: # include "monitor.h"
2: # include <ingres.h>
3: # include <aux.h>
4: # include <sccs.h>
5:
6: SCCSID(@(#)clear.c 8.1 12/31/84)
7:
8:
9:
10: /*
11: ** Clear query buffer
12: ** Flag f is set if called explicitly (with \q) and is
13: ** clear if called automatically.
14: **
15: ** Uses trace flag 3
16: */
17:
18: clear(f)
19: {
20: Autoclear = 0;
21:
22: /* TRUNCATE FILE & RETURN */
23: if (freopen(Qbname, "w", Qryiop) == NULL)
24: syserr("clear: open");
25: if (Nodayfile >= 0 && f)
26: printf("\07go\n");
27: if (f)
28: clrline(0);
29: Notnull = 0;
30: }
Defined functions
clear
defined in line
6; used 2 times