Annotation of 42BSD/ingres/source/monitor/clear.c, revision 1.1

1.1     ! root        1: # include      "monitor.h"
        !             2: # include      <ingres.h>
        !             3: # include      <aux.h>
        !             4: # include      <sccs.h>
        !             5: 
        !             6: SCCSID(@(#)clear.c     7.1     2/5/81)
        !             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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.