From 10dbc9543edd5b5a7929dd8fa87ed33dd545375c Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Mon, 21 May 2018 14:44:21 +0200 Subject: Merge fmt_human_2 and fmt_human_10 to one function Now only one function, fmt_human, takes an additional argument "base". --- util.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 4879414..faa1472 100644 --- a/util.h +++ b/util.h @@ -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, ...); -- cgit v1.2.3