sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 7fa63822674c301d2315bc3633b1a7a153d72cd3
parent ab9b9213775d6dc9a3392fa17cf32fc619c67ca2
Author: pranomostro <pranomestro@gmail.com>
Date:   Sat Jun 25 19:11:09 +0200

printf: support escaping '%' with '%%'. See printf(1p) EXAMPLES section.

Diffstat:
printf.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/printf.c b/printf.c @@ -103,8 +103,10 @@ main(int argc, char *argv[]) arg = ""; cooldown = 1; } - } else + } else { putchar('%'); + continue; + } switch (format[i]) { case 'b':