summaryrefslogtreecommitdiff
path: root/410user/libstdio/puts.c
diff options
context:
space:
mode:
Diffstat (limited to '410user/libstdio/puts.c')
-rw-r--r--410user/libstdio/puts.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/410user/libstdio/puts.c b/410user/libstdio/puts.c
new file mode 100644
index 0000000..d27a070
--- /dev/null
+++ b/410user/libstdio/puts.c
@@ -0,0 +1,14 @@
+/** @file 410user/libstdio/puts.c
+ * @author elly1 S2010
+ * @brief The puts() libc function
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <syscall.h>
+
+int puts(const char *s) {
+ print(strlen(s), (char *)s);
+ putchar('\n');
+ return 0;
+}