first commit

This commit is contained in:
Luca Bilke 2022-08-22 21:15:37 +02:00
commit 1eb13e5078
29 changed files with 8952 additions and 0 deletions

8
util.h Normal 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);