Xinqi Bao's Git

Add warn() and die()
[slstatus.git] / util.h
1 /* See LICENSE file for copyright and license details. */
2 extern char buf[1024];
3
4 #define LEN(x) (sizeof (x) / sizeof *(x))
5
6 extern char *argv0;
7
8 void warn(const char *, ...);
9 void die(const char *, ...);
10
11 const char *bprintf(const char *fmt, ...);
12 int pscanf(const char *path, const char *fmt, ...);