ISATTY(3) — UNIX Programmer’s Manual
NAME
isatty − find name of a terminal
SYNOPSIS
isatty(fildes)
int fildes;
DESCRIPTION
Isatty returns 1 if fildes is associated with a terminal device, 0 otherwise.
FILES
/dev/∗
SEE ALSO
BUGS
The return value points to static data whose content is overwritten by each call.
7th Edition