GNU/Linux |
CentOS 5.4 |
|
![]() |
isatty(3) |
![]() |
isatty − does this descriptor refer to a terminal
#include <unistd.h>
int isatty(int desc);
returns 1 if desc is an open descriptor connected to a terminal and 0 else.
SVr4, 4.3BSD, POSIX.1-2001.
fstat(2), ttyname(3)
![]() |
isatty(3) | ![]() |