summaryrefslogtreecommitdiff
path: root/isatty.c
diff options
context:
space:
mode:
Diffstat (limited to 'isatty.c')
-rw-r--r--isatty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/isatty.c b/isatty.c
new file mode 100644
index 0000000..bf815c5
--- /dev/null
+++ b/isatty.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+
+int main(int argc, char** argv)
+{
+ return !isatty(1);
+}