This commit is contained in:
Till Dieminger
2025-08-30 21:30:58 +02:00
commit 1795a7e5b1
15 changed files with 4591 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);