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