Add dehumanize_number function

Taken from NetBSD.
This commit is contained in:
Guillem Jover
2009-10-24 00:17:57 +02:00
parent 04250f6a7c
commit 538bc87998
4 changed files with 123 additions and 0 deletions

View File

@@ -31,9 +31,15 @@
#include <sys/cdefs.h>
#include <sys/stat.h>
#include <stdint.h>
#include <stdlib.h>
/* For compatibility with NetBSD, which defines humanize_number here. */
#include <libutil.h>
__BEGIN_DECLS
int dehumanize_number(const char *str, int64_t *size);
const char *fmtcheck (const char *, const char *);
char *getprogname ();