separate humansize into a util function

also show 1 decimal of human size string like: 4M -> 4.4M
This commit is contained in:
Hiltjo Posthuma
2014-10-18 21:25:00 +00:00
committed by sin
parent ff93350289
commit b6b8fe9591
4 changed files with 24 additions and 19 deletions

1
util.h
View File

@@ -20,6 +20,7 @@ void enprintf(int, const char *, ...);
double estrtod(const char *);
long estrtol(const char *, int);
void fnck(const char *, const char *, int (*)(const char *, const char *));
char *humansize(double);
void putword(const char *);
void recurse(const char *, void (*)(const char *));
#undef strlcat