dwm/util.h

13 lines
343 B
C
Raw Normal View History

2019-09-05 00:16:39 +02:00
/* See LICENSE file for copyright and license details. */
#ifndef MAX
2019-09-05 00:16:39 +02:00
#define MAX(A, B) ((A) > (B) ? (A) : (B))
#endif
#ifndef MIN
2019-09-05 00:16:39 +02:00
#define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif
2019-09-05 00:16:39 +02:00
#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size);