2017-09-17 11:45:03 -04:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
2018-07-06 01:56:46 -04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2017-09-17 11:21:54 -04:00
|
|
|
extern char buf[1024];
|
2017-09-17 10:18:17 -04:00
|
|
|
|
|
|
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
|
|
|
|
2018-05-18 04:59:05 -04:00
|
|
|
extern char *argv0;
|
|
|
|
|
|
|
|
void warn(const char *, ...);
|
|
|
|
void die(const char *, ...);
|
|
|
|
|
2018-05-19 13:33:04 -04:00
|
|
|
int esnprintf(char *str, size_t size, const char *fmt, ...);
|
2017-09-17 10:18:17 -04:00
|
|
|
const char *bprintf(const char *fmt, ...);
|
2018-07-07 04:50:25 -04:00
|
|
|
const char *fmt_human(uintmax_t num, int base);
|
2017-09-17 10:18:17 -04:00
|
|
|
int pscanf(const char *path, const char *fmt, ...);
|