aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-05-16 17:58:43 -0500
committerRob Landley <rob@landley.net>2019-05-16 17:58:43 -0500
commit0536f45747a991a21b2b544f556da704eed22bd4 (patch)
treec1a131f9b2aee09c01e96afb9d96ddb34d68766c /lib/lib.h
parent506b264702008c470492bbe0a27085d25fd24878 (diff)
downloadtoybox-0536f45747a991a21b2b544f556da704eed22bd4.tar.gz
Add human_readable_long() for more than 3 digits of output.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 707e388c..5ce29380 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -269,6 +269,7 @@ void loggit(int priority, char *format, ...);
#define HR_SPACE 1 // Space between number and units
#define HR_B 2 // Use "B" for single byte units
#define HR_1000 4 // Use decimal instead of binary units
+int human_readable_long(char *buf, unsigned long long num, int dgt, int style);
int human_readable(char *buf, unsigned long long num, int style);
// env.c