lib/human.c


Log

Author Commit Date CI Message
Jim Meyering 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.
Jim Meyering 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.
Jim Meyering 42313b42 1997-11-30T11:10:24 (human_readable): Convert to ANSI-style definition. [lint]: Define `power'.
Jim Meyering 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.