FreeBASIC  0.91.0
io_isredir.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include "fb_private_console.h"
3 
4 int fb_ConsoleIsRedirected( int is_input )
5 {
6  DWORD mode;
7  return (GetConsoleMode( (is_input? __fb_in_handle : __fb_out_handle), &mode ) == 0);
8 }