diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-08 10:12:04 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-08 10:12:04 +0100 |
commit | 619d6b06a37db0278dace541d40b9c3383919fd7 (patch) | |
tree | 9e80cada57aa76ad339c370800e0b94cfd6f472a /util.h | |
download | dwm-619d6b06a37db0278dace541d40b9c3383919fd7.tar.gz dwm-619d6b06a37db0278dace541d40b9c3383919fd7.tar.bz2 dwm-619d6b06a37db0278dace541d40b9c3383919fd7.tar.xz dwm-619d6b06a37db0278dace541d40b9c3383919fd7.tar.zst dwm-619d6b06a37db0278dace541d40b9c3383919fd7.zip |
First commit
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +/* 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)) + +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size); |