This commit is contained in:
Till Dieminger
2025-08-31 20:58:55 +02:00
parent 65ff8840f0
commit 4b508c5557
28 changed files with 4271 additions and 0 deletions

8
util.h Executable file
View File

@@ -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);