dmenu

Kris's build of dmenu
git clone git clone https://git.krisyotam.com/krisyotam/dmenu.git
Log | Files | Refs | README | LICENSE

util.h (404B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 #ifndef MAX
      4 #define MAX(A, B)               ((A) > (B) ? (A) : (B))
      5 #endif
      6 #ifndef MIN
      7 #define MIN(A, B)               ((A) < (B) ? (A) : (B))
      8 #endif
      9 #define BETWEEN(X, A, B)        ((A) <= (X) && (X) <= (B))
     10 #define LENGTH(X)               (sizeof (X) / sizeof (X)[0])
     11 
     12 void die(const char *fmt, ...);
     13 void *ecalloc(size_t nmemb, size_t size);