diff lib/lib.h @ 1276:d48bdc1cb017 draft

Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make du use it, move it from lib/pending.c to lib.c.
author Rob Landley <rob@landley.net>
date Tue, 06 May 2014 06:31:28 -0500
parents 63db77909fc8
children 114ec0ab161c
line wrap: on
line diff
--- a/lib/lib.h	Tue May 06 06:14:20 2014 -0500
+++ b/lib/lib.h	Tue May 06 06:31:28 2014 -0500
@@ -153,6 +153,7 @@
 void crc_init(unsigned int *crc_table, int little_endian);
 int terminal_size(unsigned *x, unsigned *y);
 int yesno(char *prompt, int def);
+int human_readable(char *buf, unsigned long long num);
 
 // net.c
 int xsocket(int domain, int type, int protocol);