blob: 165483296ee008a89421ea9cbc8f85eda0c51c22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* See LICENSE file for copyright and license details. */
#ifndef CMDTREE_UTIL_H
#define CMDTREE_UTIL_H
#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);
#endif /* CMDTREE_UTIL_H */
|