Bell 32V development
[unix-history] / usr / src / libc / gen / isatty.c
CommitLineData
d2189992
TL
1/*
2 * Returns 1 iff file is a tty
3 */
4
5#include <sgtty.h>
6
7isatty(f)
8{
9 struct sgttyb ttyb;
10
11 if (gtty(f, &ttyb) < 0)
12 return(0);
13 return(1);
14}