Squashed 'suckless/dmenu/' content from commit 7175c48

git-subtree-dir: suckless/dmenu
git-subtree-split: 7175c4880bac3d2a2d4a6262b59193f0a38e2fdb
This commit is contained in:
Alejandro Guerrero 2026-09-27 17:52:02 +02:00
commit c888bafafb
16 changed files with 2010 additions and 0 deletions

9
util.h Normal file
View file

@ -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);