diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-03-15 13:54:09 +0000 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-03-31 18:31:28 +0100 |
| commit | a642d6858229b86358313e38171bbada1f65ef6c (patch) | |
| tree | 76bd208819ef00cbba482332c21e85dc885c9caf /util.h | |
| parent | 899ea777a2356c753299299f0987a8ceae46042f (diff) | |
rewrite from original source
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3,6 +3,7 @@ #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)) +#define LENGTH(X) (sizeof (X) / sizeof (X)[0]) void die(const char *fmt, ...); void *ecalloc(size_t nmemb, size_t size); |
