_isatty
Visual Studio 2008
Updated: October 2008
Determines whether a file descriptor is associated with a character device.
int _isatty( int fd );
The _isatty function determines whether fd is associated with a character device (a terminal, console, printer, or serial port).
This function validates the fd parameter. If fd is a bad file pointer, the invalid parameter handler is invoked, as described in Parameter Validation. If execution is allowed to continue, the function returns 0 and sets errno to EBADF.
Routine | Required header |
|---|---|
_isatty | <io.h> |
For more compatibility information, see Compatibility in the Introduction.
Libraries
All versions of the C run-time libraries.