From 4ff6158a6cd29e87222387870e6f01aca41b8183 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 6 Apr 2024 17:35:22 +0530 Subject: meson: init --- include/util.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/util.h (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h new file mode 100644 index 0000000..f36965a --- /dev/null +++ b/include/util.h @@ -0,0 +1,18 @@ +#ifndef UTIL_H + +#include +#include + +#define err_die(r, ...) {\ + fprintf(stderr, "%s:%d: ", __FILE__, __LINE__); \ + fprintf(stderr, __VA_ARGS__); \ + fputc('\n', stderr); \ + return r; \ +} + +int r_mkdir(const char *path, mode_t mode); +int r_rmdir(const char *prefix_path, char *rm_path); +void util_strtrim(char *s); + +#define UTIL_H +#endif -- cgit v1.2.3