Fixed style in src/echo.c

This commit is contained in:
qorg11 2020-06-03 23:29:51 +02:00
parent 82b36c8ac3
commit a4d4d9069a
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 5 additions and 4 deletions

View File

@ -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;
}