diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-09 01:46:24 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-03-09 01:46:24 +0530 |
commit | 0fa57d2c51bac6ba904aa37d4d818cb3b9c151a9 (patch) | |
tree | b8e8e4f2b92a529fcd8d635f7146d30927f0e9bc /util.h |
fresh start/initial 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); |