diff options
author | Julian T <julian@T410.mynet> | 2018-09-05 21:26:17 +0200 |
---|---|---|
committer | Julian T <julian@T410.mynet> | 2018-09-05 21:26:17 +0200 |
commit | c65cccf6c83150736d4ad7edfa15a0fc6994ff14 (patch) | |
tree | 091f73717f14c4b6c4a780029242b89a0abd9b00 /util.h |
Added source
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 *errstr, ...); +void *ecalloc(size_t, size_t); |