2017-09-17 16:45:03 +01:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
2017-09-17 16:21:54 +01:00
|
|
|
extern char buf[1024];
|
2017-09-17 15:18:17 +01:00
|
|
|
|
|
|
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
|
|
|
|
2018-05-18 09:59:05 +01:00
|
|
|
extern char *argv0;
|
|
|
|
|
|
|
|
void warn(const char *, ...);
|
|
|
|
void die(const char *, ...);
|
|
|
|
|
2018-05-19 18:33:04 +01:00
|
|
|
int esnprintf(char *str, size_t size, const char *fmt, ...);
|
2017-09-17 15:18:17 +01:00
|
|
|
const char *bprintf(const char *fmt, ...);
|
2018-05-18 22:14:10 +01:00
|
|
|
const char *fmt_scaled(size_t);
|
2017-09-17 15:18:17 +01:00
|
|
|
int pscanf(const char *path, const char *fmt, ...);
|