slstatus

Fork of suckless' slstatus with my personal patches
git clone https://git.instinctive.eu/slstatus.git
Log | Files | Refs | README | LICENSE

util.h (433B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <stdint.h>
      3 
      4 extern char buf[1024];
      5 
      6 #define LEN(x) (sizeof(x) / sizeof((x)[0]))
      7 
      8 extern char *argv0;
      9 
     10 void warn(const char *, ...);
     11 void die(const char *, ...);
     12 
     13 int esnprintf(char *str, size_t size, const char *fmt, ...);
     14 const char *bprintf(const char *fmt, ...);
     15 const char *fmt_human(uintmax_t num, int base);
     16 int pscanf(const char *path, const char *fmt, ...);