1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-13 08:24:40 +02:00
Files
coreutils/lib/human.h
1997-12-21 11:22:51 +00:00

21 lines
596 B
C

#ifndef HUMAN_H_
# define HUMAN_H_ 1
/* A conservative bound on the maximum length of a human-readable string.
The output can be the product of the largest uintmax_t and the largest int,
so add their sizes before converting to a bound on digits. */
# define LONGEST_HUMAN_READABLE ((sizeof (uintmax_t) + sizeof (int)) \
* CHAR_BIT / 3)
# ifndef PARAMS
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
# define PARAMS(Args) Args
# else
# define PARAMS(Args) ()
# endif
# endif
char *human_readable PARAMS ((uintmax_t, char *, int, int, int));
#endif /* HUMAN_H_ */