util.h (584B)
1 /* 2 * Copyright (C) Raymond Cole <rc@wolog.xyz> 3 * License: GPL-3.0-or-later 4 * 5 * Portions of the code are derived from suckless dwm. See file 6 * LICENSE-dwm for copyright and license details of those portions. 7 */ 8 9 #define MAX(A, B) ((A) > (B) ? (A) : (B)) 10 #define MIN(A, B) ((A) < (B) ? (A) : (B)) 11 #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) 12 #define LENGTH(X) (sizeof (X) / sizeof (X)[0]) 13 14 #ifdef va_arg 15 void vwarn(const char *fmt, va_list ap); 16 #endif 17 void warn(const char *fmt, ...); 18 void die(const char *fmt, ...); 19 20 extern const char *progname;