.TH isatty() "" "" "General Function (libc)" "(libc)"
.PC "Check if a device is a terminal"
.B "#include <unistd.h>"
\fBint isatty(\fIfd\^\fB) int \fIfd\^\fB;\fR
.PP
.B isatty()
checks to see if a device is a terminal.
It returns one if the file descriptor
.I fd
describes a terminal, and zero otherwise.
.SH Files
\fB/dev/*\fR \(em Terminal special files
.br
\fB/etc/ttys\fR \(em Login terminals
.SH "See Also"
.Xr "ioctl()," ioctl
.Xr "libc," libc
.Xr "tty," tty
.Xr "ttyname()," ttyname
.Xr "ttyslot()," ttyslot
.Xr "unistd.h" unistd.h
.br
\*(PX Standard, \(sc4.7.2
