summaryrefslogtreecommitdiffstats
path: root/sayhello-stderr.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:29:39 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-19 11:29:39 +0200
commit41a79081b0037c6fef2325478255df5397ad0a5a (patch)
tree510a3652e8fa9818ffb72b01fa40327f69608645 /sayhello-stderr.c
downloadsayhello-41a79081b0037c6fef2325478255df5397ad0a5a.tar.bz2
sayhello-41a79081b0037c6fef2325478255df5397ad0a5a.tar.xz
initial commit
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);
+}