aboutsummaryrefslogtreecommitdiff
path: root/std/stdio.c
diff options
context:
space:
mode:
authornic-gaffney <gaffney_nic@protonmail.com>2023-06-25 18:55:58 -0500
committernic-gaffney <gaffney_nic@protonmail.com>2023-06-25 18:55:58 -0500
commitbf647e430e3a3642c8199dc81a411d5e1586cabb (patch)
treec95a82bcaa233e1653b702d9fa7ce54ca7dd95e6 /std/stdio.c
parent6a59bf6d5345fbe2487e1cc36c36aa6884fcc39d (diff)
downloadsloth-bf647e430e3a3642c8199dc81a411d5e1586cabb.tar.gz
Standard library beginnings
Diffstat (limited to 'std/stdio.c')
-rw-r--r--std/stdio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/std/stdio.c b/std/stdio.c
new file mode 100644
index 0000000..d1bc69a
--- /dev/null
+++ b/std/stdio.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+char* readln() {
+ char* str = malloc(128);
+ scanf("%127s", str);
+ return str;
+}
+
+void print(char *str) {
+ puts(str);
+}