Fixed style in src/echo.c

This commit is contained in:
qorg11 2020-06-03 23:29:51 +02:00
parent 82b36c8ac3
commit a4d4d9069a
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 5 additions and 4 deletions

View File

@ -8,9 +8,10 @@ main(int argc, char *argv[])
if(!strcmp(argv[1], "-n")) if(!strcmp(argv[1], "-n"))
nflag = 1; nflag = 1;
++argv; ++argv;
while(*argv) { while(*argv)
(void)fputs(*argv, stdout); // Print argv {
if(*++argv) putchar(' '); // If multiple things in argv, print a space between them. (void)fputs(*argv, stdout); /* Print argv */
if(*++argv) putchar(' '); /* If multiple things in argv, print a space between them. */
} }
if(!nflag) putchar('\n'); if(!nflag) putchar('\n');
return 0; return 0;