diff options
author | zachir <zachir@librem.one> | 2020-11-23 19:04:07 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2020-11-23 19:04:07 -0600 |
commit | ec62eaf734f747384ee97cb1c085f090f0710911 (patch) | |
tree | 630f8e0d4a87dffb6efe23ee9099f6a3ff3a8b3d /util.h | |
parent | d89c8baea541a1e7bfaaeccbfdee0bbc0d1d26de (diff) |
Tidy repo
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 *fmt, ...); +void *ecalloc(size_t nmemb, size_t size); |