summaryrefslogtreecommitdiff
path: root/tree/src/dwm/dwm-6.6/util.h
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-02-04 14:33:05 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-02-04 14:33:05 -0800
commitbe7fb7b57a97147b40b5d8203f6241015755a51d (patch)
tree79bb694f714d5861c3dd6f6cc548986fce5f1429 /tree/src/dwm/dwm-6.6/util.h
parentb378cb8f0e774b3e21671fca22de20b71cbac214 (diff)
suckless includes
Diffstat (limited to 'tree/src/dwm/dwm-6.6/util.h')
-rw-r--r--tree/src/dwm/dwm-6.6/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tree/src/dwm/dwm-6.6/util.h b/tree/src/dwm/dwm-6.6/util.h
new file mode 100644
index 0000000..c0a50d4
--- /dev/null
+++ b/tree/src/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);