1: # include   <stdio.h>
   2: 
   3: # include   "../ingres.h"
   4: # include   "../aux.h"
   5: # include   "monitor.h"
   6: 
   7: /*
   8: **  PRINT QUERY BUFFER
   9: **
  10: **	The logical query buffer is printed on the terminal regardless
  11: **	of the "Nodayfile" mode.  Autoclear is reset, so the query
  12: **	may be rerun.
  13: **
  14: **	Uses trace flag 6
  15: */
  16: 
  17: print()
  18: {
  19:     FILE        *iop;
  20:     register char   c;
  21: 
  22:     /* BACK UP FILE & UPDATE LAST PAGE */
  23:     Autoclear = 0;
  24:     clrline(1);
  25:     fflush(Qryiop);
  26:     if ((iop = fopen(Qbname, "r")) == NULL)
  27:         syserr("print: open 1");
  28: 
  29:     /* list file on standard output */
  30:     Notnull = 0;
  31:     while ((c = getc(iop)) > 0)
  32:     {
  33:         putchar(c);
  34:         Notnull++;
  35:     }
  36: 
  37:     fclose(iop);
  38:     cgprompt();
  39: }

Defined functions

print defined in line 17; used 1 times
Last modified: 1995-02-04
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2601
Valid CSS Valid XHTML 1.0 Strict