diff options
Diffstat (limited to 'libsayhello-stderr.c')
-rw-r--r-- | libsayhello-stderr.c | 6 |
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); +} |