summaryrefslogtreecommitdiff
path: root/lib/human.c
AgeCommit message (Collapse)Author
1999-11-07(default_block_size): New function.Jim Meyering
(humblock): Use it if no block size is specified. (human_block_size): If the specified block size is zero, report an error if report_errors is nonzero; otherwise use the default.
1999-07-04(human_readable): New function.Jim Meyering
(human_readable_inexact): Renamed from human_readable, with new arg INEXACT_STYLE. Add support for ceiling and floor.
1999-05-17(human_readable): Allow from_block_size to be zero.Jim Meyering
1999-05-13Include <string.h> or <strings.h> for strlen prototype.Jim Meyering
1999-04-25Don't include inttypes.h here.Jim Meyering
1999-04-18Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all theJim Meyering
xstrto... functions.
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.