summaryrefslogtreecommitdiff
path: root/lib/human.c
AgeCommit message (Collapse)Author
1999-01-01(humblock): Use ARGMATCH in place of argmatch.Jim Meyering
1998-07-22(human_readable): amt -> damt, to fix typo whenJim Meyering
computing which power to use after overflow occurs during multiplication. From Paul Eggert.
1998-06-29 * lib/human.c, lib/human.h (human_readable): Coalesce last two argsJim Meyering
into one, for convenience. All callers changed. (human_block_size): New function. * lib/human.c: Include <config.h> only if HAVE_CONFIG_H. Include <stdlib.h> if HAVE_STDLIB_H; declare getenv unless HAVE_DECL_GETENV. (_): New macro. Include <argmatch.h>, <error.h>, <xstrtoul.h>. (DEFAULT_BLOCK_SIZE): New macro. (block_size_args, block_size_types): New constants. (humblock): New function.
1997-11-30(human_readable): Convert to ANSI-style definition.Jim Meyering
[lint]: Define `power'.
1997-11-30New file. The interface is inspiredJim Meyering
by the human_readable function that was in du.c, but it's pretty much rewritten from scratch.