diff options
| author | krolyxon <krolyxon@tutanota.com> | 2022-06-01 23:52:05 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2022-06-01 23:52:05 +0530 |
| commit | de4cf2cf7e7b20594312ce6e7c5fceb6790a5401 (patch) | |
| tree | 53d9bd0cd7c4ccb2c9ba8baeaa8754d9c5e403f2 /util.h | |
first commit
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +/* See LICENSE file for copyright and license details. */ +#include <stdint.h> + +extern char buf[1024]; + +#define LEN(x) (sizeof (x) / sizeof *(x)) + +extern char *argv0; + +void warn(const char *, ...); +void die(const char *, ...); + +int esnprintf(char *str, size_t size, const char *fmt, ...); +const char *bprintf(const char *fmt, ...); +const char *fmt_human(uintmax_t num, int base); +int pscanf(const char *path, const char *fmt, ...); |
