1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

Add description of printf_size and printf_size_info.

This commit is contained in:
Ulrich Drepper
1997-04-19 11:22:31 +00:00
parent 307bcd7783
commit 29bb8719cf
3 changed files with 142 additions and 2 deletions

View File

@@ -96,8 +96,8 @@ printf_size (FILE *fp, const struct printf_info *info, const void *const *args)
/* Units for the both formats. */
static const char units[2][8] =
{
" kmgtps", /* For binary format. */
" KMGTPS" /* For decimal format. */
" kmgtpezy", /* For binary format. */
" KMGTPEZY" /* For decimal format. */
};
const char *tag = units[isupper (info->spec) != 0];
int divisor = isupper (info->spec) ? 1000 : 1024;