From 30d730f51fea587574a922f8763f3c7988198029 Mon Sep 17 00:00:00 2001 From: Laurence Kedward Date: Mon, 22 Nov 2021 16:11:26 +0000 Subject: Update: backend with verbose argument --- src/isatty.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/isatty.c (limited to 'src/isatty.c') diff --git a/src/isatty.c b/src/isatty.c new file mode 100644 index 0000000..bd0f74a --- /dev/null +++ b/src/isatty.c @@ -0,0 +1,13 @@ +#include //for isatty() +#include //for fileno() + +int c_isatty(void) +{ + + if (isatty(fileno(stdin))){ + return 1; + } else { + return 0; + } + +} \ No newline at end of file -- cgit v1.2.3