Add echo
This commit is contained in:
parent
0e055dbfe1
commit
93016659c6
|
@ -0,0 +1,14 @@
|
|||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
while(*argv) {
|
||||
(void)fputs(*argv, stdout); // Print argv
|
||||
if(*++argv) putchar(' '); // If multiple things in argv, print a space between them.
|
||||
}
|
||||
putchar('\n');
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue