aboutsummaryrefslogtreecommitdiff
path: root/include/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/helpers.h')
-rw-r--r--include/helpers.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/helpers.h b/include/helpers.h
new file mode 100644
index 0000000..c685e09
--- /dev/null
+++ b/include/helpers.h
@@ -0,0 +1,12 @@
+#ifndef HELPERS_H
+#define HELPERS_H
+#include <stdlib.h>
+
+void die(const char *msg);
+
+void *safe_calloc(unsigned int i, size_t size);
+
+void *safe_realloc(void *x, size_t size);
+
+void alloc_zero(void *ptr, size_t size);
+#endif