suckless/slstatus

util.h in master
Repositories | Summary | Log | Files | README | LICENSE

util.h (433B) download


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