diff options
| author | func-E <account-email@tutanota.com> | 2021-10-10 21:15:50 -0400 |
|---|---|---|
| committer | func-E <account-email@tutanota.com> | 2021-10-10 21:15:50 -0400 |
| commit | b60cafa5976ca4bc4efb00b11e7489b2c722b814 (patch) | |
| tree | e424d695e5e3c57f2ab41c23fae1304c649d090b /util.h | |
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); |
