| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

set_trace_file

#include "sfltron.h"
void
set_trace_file (const char *filename, char mode)

Synopsis

Sends trace output to the specified file. If set_trace_file is not used, traces go to the console. If filename is null, any open trace file is close. Only one trace file can be open at any time. If mode is 'a', output is appended to the trace file; if 'w' the trace file is reset at open time. The caller can check for errors in this function by looking at the value of trace_file, which is left null if errors occur.

Source Code - (sfltron.c)

{
    if (trace_file)
      {
        file close (trace_file);
        trace_file = NULL;
      }
    if (filename)
      {
        ASSERT (mode == 'w' || mode == 'a');
        trace_file = file open (filename, mode);
      }
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation