comparison toys/echo.c @ 156:1e8f4b05cb65

Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment tweaks.
author Rob Landley <rob@landley.net>
date Thu, 15 Nov 2007 18:30:30 -0600
parents 116405f248cb
children 25447caf1b4b
comparison
equal deleted inserted replaced
155:6c7836dbc16e 156:1e8f4b05cb65
7 7
8 int echo_main(void) 8 int echo_main(void)
9 { 9 {
10 int i = 0; 10 int i = 0;
11 char *arg, *from = "\\abfnrtv", *to = "\\\a\b\f\n\r\t\v"; 11 char *arg, *from = "\\abfnrtv", *to = "\\\a\b\f\n\r\t\v";
12 12
13 for (;;) { 13 for (;;) {
14 arg = toys.optargs[i]; 14 arg = toys.optargs[i];
15 if (!arg) break; 15 if (!arg) break;
16 if (i++) xputc(' '); 16 if (i++) xputc(' ');
17 17
18 // Handle -e 18 // Handle -e
19 19
20 if (toys.optflags&2) { 20 if (toys.optflags&2) {
21 int c, j = 0; 21 int c, j = 0;
22 for (;;) { 22 for (;;) {
23 c = arg[j++]; 23 c = arg[j++];
24 if (!c) break; 24 if (!c) break;