aboutsummaryrefslogtreecommitdiff
path: root/include/libn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libn.h')
-rw-r--r--include/libn.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libn.h b/include/libn.h
index 87c993c..8e21056 100644
--- a/include/libn.h
+++ b/include/libn.h
@@ -76,6 +76,11 @@ void *·alloc(void* _, uint n, ulong size) {
return malloc(n*size);
}
+static
+void *·calloc(void* _, uint n, ulong size) {
+ return calloc(n, size);
+}
+
// TODO(nnoll): Allow for nil iterfaces?
static
mem·Allocator mem·sys = {