summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorJulian T <julian@T410.mynet>2018-09-05 21:26:17 +0200
committerJulian T <julian@T410.mynet>2018-09-05 21:26:17 +0200
commitc65cccf6c83150736d4ad7edfa15a0fc6994ff14 (patch)
tree091f73717f14c4b6c4a780029242b89a0abd9b00 /util.h
Added source
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/util.h b/util.h
new file mode 100644
index 0000000..cded043
--- /dev/null
+++ b/util.h
@@ -0,0 +1,8 @@
+/* See LICENSE file for copyright and license details. */
+
+#define MAX(A, B) ((A) > (B) ? (A) : (B))
+#define MIN(A, B) ((A) < (B) ? (A) : (B))
+#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
+
+void die(const char *errstr, ...);
+void *ecalloc(size_t, size_t);