Xinqi Bao's Git

slstatus.h: Fix coding style
[slstatus.git] / util.h
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))
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(uint64_t num, int base);
16 int pscanf(const char *path, const char *fmt, ...);