ISATTY - determine if a file descriptor is a terminal.
(Compatible with UNIX System V C)
Usage:
#include <fildes.h>
ret = isatty( fd );
Where:
- int fd;
- is the file descriptor to check.
- int ret;
- is 1 if "fd" is associated with a terminal, and
0 otherwise.
Description:
"isatty" determines if a particular file descriptor
is associated with a terminal.
See Also:
expl c lib open
Copyright © 1996, Thinkage Ltd.