diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-25 22:13:37 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-10-25 22:13:37 +0530 |
commit | 1354935f4e1775ea7140fd85bd70a59d8bfe594f (patch) | |
tree | 8c75cca32711d04f08355bc3b385c81b0f66d8f3 /util.h |
dmenu-5.2 fresh start
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); |