util.h 305 B

123456789
  1. /* See LICENSE file for copyright and license details. */
  2. #define MAX(A, B) ((A) > (B) ? (A) : (B))
  3. #define MIN(A, B) ((A) < (B) ? (A) : (B))
  4. #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
  5. void die(const char *fmt, ...);
  6. void *ecalloc(size_t nmemb, size_t size);