summaryrefslogtreecommitdiff
path: root/suckless/dwm/dwm-6.6/util.h
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-06-14 08:59:25 -0700
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-06-14 08:59:25 -0700
commit3376b6420d3b6cc965890e46e7bbd06fbc9fd037 (patch)
tree67b59ce0f9ba016db62067a081c0535d064d2a3f /suckless/dwm/dwm-6.6/util.h
parentd533343af750dcfda2321f33953b66396e767f10 (diff)
layout reorg
Diffstat (limited to 'suckless/dwm/dwm-6.6/util.h')
-rw-r--r--suckless/dwm/dwm-6.6/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/suckless/dwm/dwm-6.6/util.h b/suckless/dwm/dwm-6.6/util.h
new file mode 100644
index 0000000..c0a50d4
--- /dev/null
+++ b/suckless/dwm/dwm-6.6/util.h
@@ -0,0 +1,9 @@
+/* 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))
+#define LENGTH(X) (sizeof (X) / sizeof (X)[0])
+
+void die(const char *fmt, ...);
+void *ecalloc(size_t nmemb, size_t size);