summaryrefslogtreecommitdiff
path: root/src/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/echo.c')
-rw-r--r--src/echo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/echo.c b/src/echo.c
new file mode 100644
index 0000000..df70cce
--- /dev/null
+++ b/src/echo.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(int argc, char **argv) {
+ argc--;
+ argv++;
+
+ while(argc--)
+ printf("%s%c", *(argv++), argc ? ' ' : '\n');
+}