summaryrefslogtreecommitdiff
path: root/src/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/lib')
-rw-r--r--src/js/lib/myutils.js8
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