Fixed style in src/echo.c
This commit is contained in:
parent
82b36c8ac3
commit
a4d4d9069a
|
@ -8,10 +8,11 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue