CWB
Data Fields
Redir Struct Reference

The Redir structure: contains information about redirecting output to a file or pipe. More...

#include <output.h>

Data Fields

char * name
 file name for redirection; if NULL, stdout is used More...
 
char * mode
 mode for redirection ("w" or "a") More...
 
FILE * stream
 the actual FILE object to write to. More...
 
int is_paging
 true iff piping into default pager More...
 

Detailed Description

The Redir structure: contains information about redirecting output to a file or pipe.

NB this oufght really to be "OutputRedir" as it is the distaff counterpart of InputRedir...

Field Documentation

int is_paging

true iff piping into default pager

Referenced by catalog_corpus(), close_stream(), and open_stream().

char* mode

mode for redirection ("w" or "a")

Referenced by catalog_corpus(), and open_stream().

char* name

file name for redirection; if NULL, stdout is used

Referenced by catalog_corpus(), do_save(), and open_stream().

FILE* stream

The documentation for this struct was generated from the following file: