1ISATTY(3)                  Linux Programmer's Manual                 ISATTY(3)
2
3
4

NAME

6       isatty - does this descriptor refer to a terminal
7

SYNOPSIS

9       #include <unistd.h>
10
11       int isatty(int desc);
12

DESCRIPTION

14       returns  1  if desc is an open descriptor connected to a terminal and 0
15       else.
16

CONFORMING TO

18       SVr4, 4.3BSD, POSIX.1-2001.
19

SEE ALSO

21       fstat(2), ttyname(3)
22
23
24
25Linux                             1995-04-20                         ISATTY(3)
Impressum