aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorWarrick Lo <warrick.s.z.lo@gmail.com>2021-11-22 22:00:25 -0800
committerWarrick Lo <warrick.s.z.lo@gmail.com>2021-11-22 22:00:25 -0800
commit6df36be9ba6d75f2e80843cfc56fc831f4d55462 (patch)
tree916ae3ca84f31fc7d07ca272033986acbd28c861 /util.h
Add dwm 6.2 source code
Commit a786211 (2021-08-20) of the dwm source tree.
Diffstat (limited to '')
-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..f633b51
--- /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 *fmt, ...);
+void *ecalloc(size_t nmemb, size_t size);