Merge fmt_human_2 and fmt_human_10 to one function

Now only one function, fmt_human, takes an additional argument "base".
This commit is contained in:
Aaron Marcher
2018-05-21 14:44:21 +02:00
parent fc0dde5a60
commit 10dbc9543e
7 changed files with 44 additions and 46 deletions

3
util.h
View File

@ -10,6 +10,5 @@ void die(const char *, ...);
int esnprintf(char *str, size_t size, const char *fmt, ...);
const char *bprintf(const char *fmt, ...);
const char *fmt_human_2(size_t num);
const char *fmt_human_10(size_t num);
const char *fmt_human(size_t num, int iec);
int pscanf(const char *path, const char *fmt, ...);