diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 21:07:39 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-04-06 21:07:39 +0200 |
| commit | 703bc5124519189b308345aad056e42c06d5dc8b (patch) | |
| tree | 7936ec51511f861455ed7c485fb8c585546c9280 /util.h | |
| download | dwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.gz dwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.bz2 dwm-703bc5124519189b308345aad056e42c06d5dc8b.tar.xz dwm-703bc5124519189b308345aad056e42c06d5dc8b.zip | |
commit
Diffstat (limited to 'util.h')
| -rwxr-xr-x | 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); |
