From bc3e2818f1c96289f1db2ed367274fb7bb06e89a Mon Sep 17 00:00:00 2001 From: spv420 Date: Sat, 23 Apr 2022 18:40:22 -0400 Subject: yeet --- src/js/lib/myutils.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/js/lib') diff --git a/src/js/lib/myutils.js b/src/js/lib/myutils.js index 0d10182..80d4d9b 100644 --- a/src/js/lib/myutils.js +++ b/src/js/lib/myutils.js @@ -1,3 +1,9 @@ function puts(s) { - return calls4arg("puts\0", sptr(s), 0, 0, 0); + return calls4arg("puts\0", sptr(s + "\0"), 0, 0, 0); +} + +function printf() { + for (var i = 0; i < arguments.length; i++) { + puts(arguments[i]); + } } \ No newline at end of file -- cgit v1.2.3