_isatty

Tests if a file handle refers to a terminal file.

int _isatty (int handle);

int isatty (int handle);

Required Header
<io.h>

Return Value

Each of these functions returns 1 if the file refered to by handle is a terminal, or 0 if it is not. 0 is returned if an invalid handle is passed.

Parameters

handle

  The handle of an open file

Low Level I/O

See Also    _open