2001-01-23 Jeff Johnston <jjohnstn@redhat.com>

* libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
        that suppressed . for %.0f, 0.1.  Check now looks if there
        are padding zeroes (expt) in addition to any digits (ndig) to
        print.
This commit is contained in:
Jeff Johnston 2001-01-23 19:49:09 +00:00
parent 4c7b82500d
commit e9cd87b82a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2001-01-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/vfprintf.c (_VFPRINTF_R): Modification to fix
that suppressed . for %.0f, 0.1. Check now looks if there
are padding zeroes (expt) in addition to any digits (ndig) to
print.
2001-01-18 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/arc/Makefile.am: New file.

View File

@ -853,7 +853,7 @@ number: if ((dprec = prec) >= 0)
}
} else if (expt <= 0) {
PRINT("0", 1);
if(ndig) {
if(expt || ndig) {
PRINT(decimal_point, 1);
PAD(-expt, zeroes);
PRINT(cp, ndig);