aboutsummaryrefslogtreecommitdiff
path: root/src/all.hff
diff options
context:
space:
mode:
Diffstat (limited to 'src/all.hff')
-rw-r--r--src/all.hff4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/all.hff b/src/all.hff
index 895657a..f15df13 100644
--- a/src/all.hff
+++ b/src/all.hff
@@ -133,3 +133,7 @@ fn bswap64(x u64) u64 {
return (as(u64)bswap32(x) << 32)
| (bswap32(x >> 32));
}
+
+fn spanz(x *const u8) [#]const u8 {
+ return x[0::strlen(x)];
+}