summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-06-30 10:35:04 -0400
committerJakob Kaivo <jkk@ung.org>2020-06-30 10:35:04 -0400
commitb4784b4d809aede70aa21fd436e1de8cc7642463 (patch)
treec4add7f90e36f3cc5051f08ae3baa457eb738eb7 /include
parentb2d5ec823a922b4710cad15283d589b2142b9fd8 (diff)
move to include/
Diffstat (limited to 'include')
-rw-r--r--include/mapalloc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mapalloc.h b/include/mapalloc.h
new file mode 100644
index 0000000..f4a4434
--- /dev/null
+++ b/include/mapalloc.h
@@ -0,0 +1,11 @@
+#ifndef MAPALLOC_H
+#define MAPALLOC_H
+
+#include <stddef.h> /* for the definition of size_t */
+
+void *map_malloc(size_t n);
+void *map_calloc(size_t nelem, size_t elsize);
+void *map_realloc(void *ptr, size_t n);
+void map_free(void *ptr);
+
+#endif