From 552899281eb67c6e652be15f46104c4de8c4a936 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Wed, 15 Feb 2023 17:04:48 +0100 Subject: make print usable --- core/print.c | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 107 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/print.c b/core/print.c index f0134b9..9eec477 100644 --- a/core/print.c +++ b/core/print.c @@ -1,7 +1,112 @@ #include "../lib/io/io.h" +#include "../lib/malloc/malloc.h" +#include "../lib/cstr/cstr.h" +#include "../lib/aec/aec.h" int main(int argc, char **argv) { - for (int i = 1; i < argc; ++i) wstdf("%s ", argv[i]); - wstd("\n"); + if (argc < 2) { + wff(STDERR_FD, "print