diff options
author | lucashemi <gghuebur@gmail.com> | 2022-09-13 00:42:20 -0300 |
---|---|---|
committer | lucashemi <gghuebur@gmail.com> | 2022-09-13 00:42:20 -0300 |
commit | 90c881ddaa753fa051c41cd69488435d8c519d3d (patch) | |
tree | 196ed5463fb3dbd7d50a012804da3b0b1ab204a6 /util.h |
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); |