From a4d4d9069a7a23320f85972827a2649abb250a71 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Wed, 3 Jun 2020 23:29:51 +0200 Subject: [PATCH] Fixed style in src/echo.c --- src/echo.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/echo.c b/src/echo.c index 19c897a..bb58c5d 100644 --- a/src/echo.c +++ b/src/echo.c @@ -8,10 +8,11 @@ main(int argc, char *argv[]) if(!strcmp(argv[1], "-n")) nflag = 1; ++argv; - while(*argv) { - (void)fputs(*argv, stdout); // Print argv - if(*++argv) putchar(' '); // If multiple things in argv, print a space between them. - } + while(*argv) + { + (void)fputs(*argv, stdout); /* Print argv */ + if(*++argv) putchar(' '); /* If multiple things in argv, print a space between them. */ + } if(!nflag) putchar('\n'); return 0; }