diff options
author | Philip Wittamore <philip@wittamore.com> | 2025-05-07 21:30:50 +0200 |
---|---|---|
committer | Philip Wittamore <philip@wittamore.com> | 2025-05-07 21:30:50 +0200 |
commit | 584abc4f96590297909cb90727d793e405abbb6a (patch) | |
tree | f6139b9df6ccca8a38e38b19c0eb61ef4b452a49 /util.h | |
download | dwm-584abc4f96590297909cb90727d793e405abbb6a.tar.gz dwm-584abc4f96590297909cb90727d793e405abbb6a.tar.bz2 dwm-584abc4f96590297909cb90727d793e405abbb6a.zip |
dwm 6.5
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |