diff options
| author | stderr64 <stderr64@null.net> | 2026-02-22 22:19:21 +0200 |
|---|---|---|
| committer | stderr64 <stderr64@null.net> | 2026-02-22 22:19:21 +0200 |
| commit | 4940ecf1c7c9b5bc9092e173f3e6a34d16dacdae (patch) | |
| tree | fc55909afef95b18bbda39763ebb7f7640601a0e /util.h | |
| download | dwm_custom-4940ecf1c7c9b5bc9092e173f3e6a34d16dacdae.tar.gz dwm_custom-4940ecf1c7c9b5bc9092e173f3e6a34d16dacdae.tar.zst | |
First commit
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); |
