|
615e02f2
|
1999-05-17T13:03:46
|
|
(human_readable): Allow from_block_size to be zero.
|
|
150e3921
|
1999-05-13T20:48:44
|
|
Include <string.h> or <strings.h> for strlen prototype.
|
|
4abb9676
|
1999-04-25T19:18:55
|
|
Don't include inttypes.h here.
|
|
7cc21036
|
1999-04-18T23:18:32
|
|
Include xstrtol.h, not xstrtoul.h, since xstrtol.h now defines all the
xstrto... functions.
|
|
f8715f3a
|
1999-01-01T06:47:04
|
|
(humblock): Use ARGMATCH in place of argmatch.
|
|
23360fcb
|
1998-07-22T18:30:16
|
|
(human_readable): amt -> damt, to fix typo when
computing which power to use after overflow occurs during
multiplication.
From Paul Eggert.
|
|
96e78d1f
|
1998-06-29T15:23:04
|
|
* lib/human.c, lib/human.h (human_readable): Coalesce last two args
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.
|
|
42313b42
|
1997-11-30T11:10:24
|
|
(human_readable): Convert to ANSI-style definition.
[lint]: Define `power'.
|
|
1bbd61b9
|
1997-11-30T10:24:32
|
|
New file. The interface is inspired
by the human_readable function that was in du.c, but it's pretty
much rewritten from scratch.
|