mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +00:00
printf: Support %zu (the 'z' is really just ignored.)
This commit is contained in:
parent
1b6fa30e58
commit
3ed17b0792
3 changed files with 9 additions and 2 deletions
|
@ -200,6 +200,8 @@ template<typename PutChFunc>
|
|||
bool zeroPad = false;
|
||||
unsigned fieldWidth = 0;
|
||||
unsigned long_qualifiers = 0;
|
||||
bool size_qualifier = false;
|
||||
(void)size_qualifier;
|
||||
bool alternate_form = 0;
|
||||
if (*p == '%' && *(p + 1)) {
|
||||
one_more:
|
||||
|
@ -225,6 +227,11 @@ template<typename PutChFunc>
|
|||
if (*(p + 1))
|
||||
goto one_more;
|
||||
}
|
||||
if (*p == 'z') {
|
||||
size_qualifier = true;
|
||||
if (*(p + 1))
|
||||
goto one_more;
|
||||
}
|
||||
if (*p == '#') {
|
||||
alternate_form = true;
|
||||
if (*(p + 1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue