printf: support escaping '%' with '%%'. See printf(1p) EXAMPLES section.
This commit is contained in:
parent
11d8e91042
commit
229d7cc89a
4
printf.c
4
printf.c
@ -103,8 +103,10 @@ main(int argc, char *argv[])
|
||||
arg = "";
|
||||
cooldown = 1;
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
putchar('%');
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (format[i]) {
|
||||
case 'b':
|
||||
|
Loading…
x
Reference in New Issue
Block a user