diff --git a/src/echo.c b/src/echo.c new file mode 100644 index 0000000..c489f6c --- /dev/null +++ b/src/echo.c @@ -0,0 +1,14 @@ +#include +#include +#include + +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; +}