FreeBASIC  0.91.0
io_isredir.c
Go to the documentation of this file.
1 #include "../fb.h"
2 #include <unistd.h>
3 
4 int fb_ConsoleIsRedirected( int is_input )
5 {
6  return (isatty( fileno( (is_input? stdin : stdout) ) ) == 0);
7 }