From bf647e430e3a3642c8199dc81a411d5e1586cabb Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Sun, 25 Jun 2023 18:55:58 -0500 Subject: Standard library beginnings --- std/stdio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 std/stdio.c (limited to 'std/stdio.c') 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 +#include + +char* readln() { + char* str = malloc(128); + scanf("%127s", str); + return str; +} + +void print(char *str) { + puts(str); +} -- cgit v1.2.3