aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/snippets.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/snippets.js b/src/snippets.js
index 39160b78..96420990 100644
--- a/src/snippets.js
+++ b/src/snippets.js
@@ -63,6 +63,11 @@ var Snippets = {
} while (HEAP[psrc+i-1] != 0);
},
+ strtol: function(ptr) {
+ // XXX: We ignore the other two params!
+ return parseInt(Pointer_stringify(ptr));
+ },
+
strcmp: function(px, py) {
var i = 0;
while (true) {