Add missing file from last checkin.

This commit is contained in:
Christopher Faylor 2012-07-29 21:42:10 +00:00
parent c5b9032e48
commit ab6596266f
1 changed files with 11 additions and 1 deletions

View File

@ -146,7 +146,17 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap)
l_opt = true; l_opt = true;
continue; continue;
case 'c': case 'c':
*dst++ = (char) (va_arg (ap, int) & 0xff); {
unsigned char c = (va_arg (ap, int) & 0xff);
if (isprint (c) || pad != '0')
*dst++ = c;
else
{
*dst++ = '0';
*dst++ = 'x';
dst = __rn (dst, 16, 0, c, len, pad, LMASK);
}
}
break; break;
case 'C': case 'C':
{ {