summaryrefslogtreecommitdiff
path: root/wm/dmenu-5.3/util.h
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2025-07-23 21:35:48 -0500
committerstkhan <personal@slickd.xyz>2025-07-23 21:35:48 -0500
commit7bf6f5dabe3b0530dc1811663a5498acfa1df879 (patch)
tree04f682c70dda155df024725c39f5093fdf051316 /wm/dmenu-5.3/util.h
parent631750d87c2711d2c29c5522a0d8de7744080ac3 (diff)
Dmenu overhaul
Diffstat (limited to 'wm/dmenu-5.3/util.h')
-rw-r--r--wm/dmenu-5.3/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wm/dmenu-5.3/util.h b/wm/dmenu-5.3/util.h
new file mode 100644
index 0000000..c0a50d4
--- /dev/null
+++ b/wm/dmenu-5.3/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);