about summary refs log tree commit diff
path: root/src/stdio/puts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/puts.c')
-rw-r--r--src/stdio/puts.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stdio/puts.c b/src/stdio/puts.c
new file mode 100644
index 00000000..eb70efdc
--- /dev/null
+++ b/src/stdio/puts.c
@@ -0,0 +1,6 @@
+#include "stdio_impl.h"
+
+int puts(const char *s)
+{
+	return -(fputs(s, stdout) < 0 || putchar('\n') < 0);
+}