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