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