diff options
| author | spv420 <unomilliono@gmail.com> | 2022-04-23 18:40:22 -0400 |
|---|---|---|
| committer | spv420 <unomilliono@gmail.com> | 2022-04-23 18:40:22 -0400 |
| commit | bc3e2818f1c96289f1db2ed367274fb7bb06e89a (patch) | |
| tree | d9b764a032b538e64d8fcbc39046dae6446583f0 /src/js/lib/myutils.js | |
| parent | bba0b79e286a7b7e64febb8bef7835336a522bbf (diff) | |
yeet
Diffstat (limited to 'src/js/lib/myutils.js')
| -rw-r--r-- | src/js/lib/myutils.js | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
