From 1fd608288ee47c2c560817f12f14b21069fed2f6 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 28 Dec 2024 16:47:43 -0800 Subject: makefile and directory structure change completely to build client and server --- src/include/helpers.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/include/helpers.h (limited to 'src/include/helpers.h') diff --git a/src/include/helpers.h b/src/include/helpers.h new file mode 100644 index 0000000..5d46909 --- /dev/null +++ b/src/include/helpers.h @@ -0,0 +1,17 @@ +#ifndef HELPERS_H +#define HELPERS_H + +#include + +void die_lz(int code, const char *msg); + +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); + +void nothing(void *); +#endif -- cgit