aboutsummaryrefslogtreecommitdiff
path: root/std/stdio.c
diff options
context:
space:
mode:
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);
+}