443
edits
-
Changes
Created page with "<strong>ISATTY</strong> ==SYNOPSIS== #include <unixio.h> int isatty(int fd) ==DESCRIPTION== This tests the type of the file associated with fd. It returns true if the..."
<strong>ISATTY</strong>
==SYNOPSIS==
#include <unixio.h>
int isatty(int fd)
==DESCRIPTION==
This tests the type of the file associated with fd. It
returns true if the file is attached to a tty-like device. This would normally be used for testing if standard input is coming from a file or the console. For
testing STDIO streams, use <strong>isatty(fileno(stream)).</strong>
==SYNOPSIS==
#include <unixio.h>
int isatty(int fd)
==DESCRIPTION==
This tests the type of the file associated with fd. It
returns true if the file is attached to a tty-like device. This would normally be used for testing if standard input is coming from a file or the console. For
testing STDIO streams, use <strong>isatty(fileno(stream)).</strong>