diff options
author | Rob Landley <rob@landley.net> | 2019-05-16 17:58:43 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-05-16 17:58:43 -0500 |
commit | 0536f45747a991a21b2b544f556da704eed22bd4 (patch) | |
tree | c1a131f9b2aee09c01e96afb9d96ddb34d68766c /lib/lib.h | |
parent | 506b264702008c470492bbe0a27085d25fd24878 (diff) | |
download | toybox-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |