2012-12-08 09:13:01 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
|
|
|
|
#define MAX(A, B) ((A) > (B) ? (A) : (B))
|
|
|
|
#define MIN(A, B) ((A) < (B) ? (A) : (B))
|
2015-03-06 04:26:11 +00:00
|
|
|
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
|
2024-10-05 12:01:49 +01:00
|
|
|
#define LENGTH(X) (sizeof (X) / sizeof (X)[0])
|
2012-12-08 09:13:01 +00:00
|
|
|
|
2016-05-22 21:33:56 +01:00
|
|
|
void die(const char *fmt, ...);
|
|
|
|
void *ecalloc(size_t nmemb, size_t size);
|