diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-12-16 18:56:39 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2005-12-16 18:56:39 +0000 |
| commit | 75067f4f702154e49d475982591d9dcffa155afe (patch) | |
| tree | bd5d57df456cddc66bc6d7f0d8d200712a39d273 /lib/libc/stdio/vfprintf.c | |
| parent | da61b9a69efce729d27cb9882c32c74d01cfebf0 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 25ac2d71efda..34e6bf0c930c 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <wchar.h> +#include <printf.h> #include <stdarg.h> #include "un-namespace.h" @@ -466,6 +467,12 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap) char sign; /* sign prefix (' ', '+', '-', or \0) */ char thousands_sep; /* locale specific thousands separator */ const char *grouping; /* locale specific numeric grouping rules */ + + if (__use_xprintf == 0 && getenv("USE_XPRINTF")) + __use_xprintf = 1; + if (__use_xprintf > 0) + return (__xvprintf(fp, fmt0, ap)); + #ifndef NO_FLOATING_POINT /* * We can decompose the printed representation of floating |
