diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-04-05 00:43:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-04-05 00:43:06 +0000 |
commit | 9106c38136e580b832b75b4f54e7e8dceb591455 (patch) | |
tree | 99410d5eb04608b46640ba00763f0568e4fc9c8b /stdio-common/printf.h | |
parent | 5cb9ee67467a02d04d7394631ad9c95aa0359392 (diff) | |
download | glibc-9106c38136e580b832b75b4f54e7e8dceb591455.tar glibc-9106c38136e580b832b75b4f54e7e8dceb591455.tar.gz glibc-9106c38136e580b832b75b4f54e7e8dceb591455.tar.bz2 glibc-9106c38136e580b832b75b4f54e7e8dceb591455.zip |
Correct handling of installable printf handlers.
Diffstat (limited to 'stdio-common/printf.h')
-rw-r--r-- | stdio-common/printf.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/stdio-common/printf.h b/stdio-common/printf.h index 6d9e8a455f..c49172b88c 100644 --- a/stdio-common/printf.h +++ b/stdio-common/printf.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 95, 96 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -122,6 +122,21 @@ enum #define PA_FLAG_PTR (1 << 11) + +/* Function which can be registered as `printf'-handlers. */ + +/* Print floating point value using using abbreviations for the orders + of magnitude used for numbers ('k' for kilo, 'm' for mega etc). If + the format specifier is a uppercase character powers of 1000 are + used. Otherwise powers of 1024. */ +extern int printf_size __P ((FILE *__fp, __const struct printf_info *__info, + __const void *__const *args)); + +/* This is the appropriate argument information function for `printf_size'. */ +extern int printf_size_info __P ((__const struct printf_info *__info, + size_t __n, int *__argtypes)); + + __END_DECLS #endif /* printf.h */ |