summaryrefslogtreecommitdiffstats
path: root/sayhello-stderr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sayhello-stderr.c')
-rw-r--r--sayhello-stderr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sayhello-stderr.c b/sayhello-stderr.c
new file mode 100644
index 0000000..b993cf4
--- /dev/null
+++ b/sayhello-stderr.c
@@ -0,0 +1,6 @@
+#include <unistd.h>
+
+void sayhello(void) {
+ const char *buf="hello\n";
+ write(2, buf, 6);
+}