aboutsummaryrefslogtreecommitdiff
path: root/src/isatty.c
blob: bd0f74a83fe9dc281da28541d0a87413f1f5a71b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <unistd.h>	//for isatty()
#include <stdio.h>	//for fileno()
 
int c_isatty(void)
{

	if (isatty(fileno(stdin))){
        return 1;
    } else {
        return 0;
    }
    
}