summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
Diffstat (limited to 'tapset')
-rw-r--r--tapset/builtin_hexstring.stp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tapset/builtin_hexstring.stp b/tapset/builtin_hexstring.stp
new file mode 100644
index 00000000..c441bbc4
--- /dev/null
+++ b/tapset/builtin_hexstring.stp
@@ -0,0 +1,7 @@
+function _hexstring (num) %{
+ sprintf (THIS->__retvalue, "%llx", (long long) THIS->num);
+%}
+
+function hexstring (num) {
+ return "" . _hexstring (num + 0)
+}