From e75d6f6b8f4512a5bbfecbfa8c17f0bb687e3d55 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 24 Dec 2024 21:11:06 -0800 Subject: first commit --- include/helpers.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/helpers.h (limited to 'include/helpers.h') 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 + +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 -- cgit