summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/linux_development:detecting_stdout_escape_char_support.ascii6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linux_development:detecting_stdout_escape_char_support.ascii b/src/linux_development:detecting_stdout_escape_char_support.ascii
index 2179373..8b5b942 100644
--- a/src/linux_development:detecting_stdout_escape_char_support.ascii
+++ b/src/linux_development:detecting_stdout_escape_char_support.ascii
@@ -1,8 +1,8 @@
Linux Development:Detecting STDOUT Escape Char Support
======================================================
:author: Aaron Ball
-:email: nullspoon@iohq.net
-:revdate: December 29, 2016
+:email: nullspoon@oper.io
+:revdate: January 18, 2017
== {doctitle}
@@ -116,7 +116,7 @@ understanding that comes from writing it in C yourself.
int ischardev(FILE* fd) {
struct stat d;
// stat the file descriptor
- fstat(fileno(stdout), &d);
+ fstat(fileno(fd), &d);
// Check st_mode (see "man 2 stat" for more information about this)
if(S_ISCHR(d.st_mode))

Generated by cgit