diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-10 10:20:43 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-05-10 10:20:43 +0530 |
commit | 7480d87d40d87334419946d3bbf659ded262d81d (patch) | |
tree | 11198e7daa1d2d05ab308101328b94a512110f9e /util.h |
first commit - fullgaps patch only
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); |