xbps_show_pkg_info(): use humanize_number().

--HG--
extra : convert_revision : e1c903e76d6d5b6501c8893b6d14e23e5b395e58
This commit is contained in:
Juan RP
2008-12-22 07:09:04 +01:00
parent 1105f4f278
commit d10d9e824c
4 changed files with 54 additions and 9 deletions

View File

@@ -37,12 +37,7 @@
#include <string.h>
#include <locale.h>
#define HN_DECIMAL 0x01
#define HN_NOSPACE 0x02
#define HN_B 0x04
#define HN_DIVISOR_1000 0x08
#define HN_GETSCALE 0x10
#define HN_AUTOSCALE 0x20
#include <xbps_api.h>
int
humanize_number(char *buf, size_t len, int64_t bytes,