diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:20:45 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-22 05:20:45 +0000 |
commit | 55ff6a17cd124806e30f27f5da7c5e976f6925e8 (patch) | |
tree | 7a4121545b42a8caa441adbd7f857fa918d49c45 /util.h | |
parent | Initial commit (diff) | |
download | dmenu-55ff6a17cd124806e30f27f5da7c5e976f6925e8.tar.gz dmenu-55ff6a17cd124806e30f27f5da7c5e976f6925e8.zip |
initial commit
Diffstat (limited to '')
-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); |