comparison toys/posix/printf.c @ 1667:aa6487c2c5f8 draft

fix typo in printf
author Elliott Hughes <enh@google.com>
date Tue, 20 Jan 2015 15:52:41 -0600
parents 971df24b458b
children 848969327d77
comparison
equal deleted inserted replaced
1666:10922d83392a 1667:aa6487c2c5f8
20 */ 20 */
21 21
22 #define FOR_printf 22 #define FOR_printf
23 #include "toys.h" 23 #include "toys.h"
24 24
25 // Detect matching character (return true/valse) and advance pointer if match. 25 // Detect matching character (return true/false) and advance pointer if match.
26 static int eat(char **s, char c) 26 static int eat(char **s, char c)
27 { 27 {
28 int x = (**s == c); 28 int x = (**s == c);
29 29
30 if (x) ++*s; 30 if (x) ++*s;