From 438ad16d03f38e0e444f6ad575078ee949679a86 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 27 Dec 2023 16:05:41 +0530 Subject: repo: init --- util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 util.h (limited to 'util.h') diff --git a/util.h b/util.h new file mode 100644 index 0000000..be1c5ec --- /dev/null +++ b/util.h @@ -0,0 +1,16 @@ +#ifndef UTIL_H + +#include +#include + +#define err_die(...) {\ + fprintf(stderr, "err: %s:%d: ", __FILE__, __LINE__); \ + fprintf(stderr, __VA_ARGS__); \ + fputc('\n', stderr); \ + return 1; \ +} + +int r_mkdir(const char *path, mode_t mode); + +#define UTIL_H +#endif -- cgit v1.2.3