This commit is contained in:
Alejandro Guerrero 2026-09-25 10:52:05 +02:00
commit 4a4d5f5386
16 changed files with 2010 additions and 0 deletions

9
dmenu/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);