FreeBASIC  0.91.0
file_hreset.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include "fb_private_console.h"
3 
4 int fb_hFileResetEx( int streamno )
5 {
6  FILE *f;
7 
9 
10  if( streamno == 0 )
11  f = freopen( "CONIN$", "r", stdin );
12  else
13  f = freopen( "CONOUT$", "w", stdout );
14 
15  /* force handles to be reinitialized now */
17 
18  return (f != NULL);
19 }