util.h (393B)
1 /* 2 * Copyright (C) Raymond Cole <rc@wolog.xyz> 3 * License: GPL-3.0-or-later 4 */ 5 6 #define MAX(A, B) ((A) > (B) ? (A) : (B)) 7 #define MIN(A, B) ((A) < (B) ? (A) : (B)) 8 #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) 9 10 #ifdef va_arg 11 void vwarn(const char *fmt, va_list ap); 12 #endif 13 void warn(const char *fmt, ...); 14 void die(const char *fmt, ...); 15 16 extern const char *progname;