V7M/src/libc/gen/isatty.c

Compare this file to the similar file:
Show the results in this format:

/*
 * Returns 1 iff file is a tty
 */

#include <sgtty.h>

isatty(f)
{
	struct sgttyb ttyb;

	if (gtty(f, &ttyb) < 0)
		return(0);
	return(1);
}