infobar

Unixy status monitor
git clone git://wolog.xyz/infobar
Log | Files | Refs | README | LICENSE

util.h (530B)


      1 /*
      2  * Copyright (C) Raymond Cole <rc@wolog.xyz>
      3  *
      4  * Licensed under the GNU General Public License; either version 3 of
      5  * the License, or (at your option) any later version.  See the LICENSE
      6  * file for details.
      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 
     13 #ifdef va_arg
     14 void vwarn(const char *fmt, va_list ap);
     15 #endif
     16 void warn(const char *fmt, ...);
     17 void die(const char *fmt, ...);
     18 
     19 extern const char *progname;