writef: add %c format specifier support
This commit is contained in:
parent
8de86dd647
commit
22463e729b
@ -26,7 +26,15 @@ size_t writef(string s, va_list args, ch_out_fn ch_out)
|
||||
{
|
||||
if (escape)
|
||||
{
|
||||
if (c == 'x')
|
||||
if (c == 'c')
|
||||
{
|
||||
ulong ch;
|
||||
va_arg(args, ch);
|
||||
ch_out(cast(ubyte)ch);
|
||||
length_written++;
|
||||
escape = false;
|
||||
}
|
||||
else if (c == 'x')
|
||||
{
|
||||
ulong v;
|
||||
va_arg(args, v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user