Annotation of researchv10no/ncurses/screen/traceonoff.c, revision 1.1

1.1     ! root        1: #include "curses.ext"
        !             2: /*     @(#) traceonoff.c: 1.1 10/15/83 (1.13   8/20/82)        */
        !             3: 
        !             4: traceon()
        !             5: {
        !             6: #ifdef DEBUG
        !             7:        if (outf == NULL) {
        !             8:                outf = fopen("trace", "a");
        !             9:                if (outf == NULL) {
        !            10:                        perror("trace");
        !            11:                        exit(-1);
        !            12:                }
        !            13:                fprintf(outf, "trace turned on\n");
        !            14:        }
        !            15: #endif
        !            16: }
        !            17: 
        !            18: traceoff()
        !            19: {
        !            20: #ifdef DEBUG
        !            21:        if (outf != NULL) {
        !            22:                fprintf(outf, "trace turned off\n");
        !            23:                fclose(outf);
        !            24:                outf = NULL;
        !            25:        }
        !            26: #endif
        !            27: }

unix.superglobalmegacorp.com

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