mescc: Mes C Library: Support gcc-4.6.4: vfprintf, vsnprintf: pad with space.
* lib/stdio/vfprintf.c (vfprintf): pad with space. * lib/stdio/vsnprintf.c (vsnprintf): pad with space.
This commit is contained in:
parent
98b9ac8e98
commit
0e55071bc7
|
@ -48,6 +48,11 @@ vfprintf (FILE * f, char const *format, va_list ap)
|
||||||
c = *++p;
|
c = *++p;
|
||||||
}
|
}
|
||||||
char pad = ' ';
|
char pad = ' ';
|
||||||
|
if (c == ' ')
|
||||||
|
{
|
||||||
|
pad = c;
|
||||||
|
c = *p++;
|
||||||
|
}
|
||||||
if (c == '0')
|
if (c == '0')
|
||||||
{
|
{
|
||||||
pad = c;
|
pad = c;
|
||||||
|
|
|
@ -50,6 +50,11 @@ vsnprintf (char *str, size_t size, char const *format, va_list ap)
|
||||||
c = *++p;
|
c = *++p;
|
||||||
}
|
}
|
||||||
char pad = ' ';
|
char pad = ' ';
|
||||||
|
if (c == ' ')
|
||||||
|
{
|
||||||
|
pad = c;
|
||||||
|
c = *p++;
|
||||||
|
}
|
||||||
if (c == '0')
|
if (c == '0')
|
||||||
{
|
{
|
||||||
pad = c;
|
pad = c;
|
||||||
|
|
Loading…
Reference in a new issue