/[ascend]/trunk/test/redirectStdStreams.c
ViewVC logotype

Diff of /trunk/test/redirectStdStreams.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 955 by johnpye, Wed Apr 5 05:14:20 2006 UTC revision 956 by johnpye, Sat Dec 9 15:38:05 2006 UTC
# Line 33  Line 33 
33  #endif  #endif
34    
35  #include "redirectStdStreams.h"  #include "redirectStdStreams.h"
36    
37    #if 0
38    
39  static FILE *f_stdin_file = NULL;  static FILE *f_stdin_file = NULL;
40  static int f_stdin_handle = -1;  static int f_stdin_handle = -1;
# Line 171  FILE *redirect_stderr(CONST char *filena Line 173  FILE *redirect_stderr(CONST char *filena
173    
174    
175  FILE *reset_stderr(void)  FILE *reset_stderr(void)
176  {  {
177      fprintf(stderr,"\n\n\n\n\nREDIRECTING STDERR!\n\n\n\n");
178    if (NULL != f_stderr_file) {    if (NULL != f_stderr_file) {
179      fflush(f_stderr_file);      fflush(f_stderr_file);
180      fclose(f_stderr_file);      fclose(f_stderr_file);
# Line 186  FILE *reset_stderr(void) Line 189  FILE *reset_stderr(void)
189    f_stderr_handle = -1;    f_stderr_handle = -1;
190    return stderr;    return stderr;
191  }  }
192    
193    #endif
194    

Legend:
Removed from v.955  
changed lines
  Added in v.956

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22