From 5369407082db53b68a1100e7b5391a1e9c36e621 Mon Sep 17 00:00:00 2001 From: Orfeas <38209077+0xfea5@users.noreply.github.com> Date: Tue, 16 Apr 2024 00:19:57 +0300 Subject: Parse /proc/pid/maps --- src/util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/util.h (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h new file mode 100644 index 0000000..5fd680e --- /dev/null +++ b/src/util.h @@ -0,0 +1,16 @@ +#ifndef _UTIL_H_ +#define _UTIL_H_ +#include + +#define ERROR(...) \ + do { \ + fprintf(stderr, __VA_ARGS__); \ + exit(1); \ + } while (0) + +#define LOG(...) \ + fprintf(stderr, __VA_ARGS__) + +void* xmalloc(size_t size); + +#endif // _UTIL_H_ -- cgit v1.2.3