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