|
|
BSD 4.0
/*
* Returns 1 iff file is a tty
*/
#include <sgtty.h>
isatty(f)
{
struct sgttyb ttyb;
if (gtty(f, &ttyb) < 0)
return(0);
return(1);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.