aboutsummaryrefslogtreecommitdiff
path: root/alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'alloc.h')
-rw-r--r--alloc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/alloc.h b/alloc.h
new file mode 100644
index 0000000..e8c6c85
--- /dev/null
+++ b/alloc.h
@@ -0,0 +1,10 @@
+#ifndef ALLOC_H
+#define ALLOC_H
+
+#include <stddef.h>
+#include <stdlib.h>
+
+void* alloc_or_crash(size_t size);
+void* realloc_or_crash(void *mem, size_t new_size);
+
+#endif