summaryrefslogtreecommitdiff
path: root/src/echo.c
diff options
context:
space:
mode:
authorJake Mannens <jakem_5@hotmail.com>2020-03-25 13:21:37 +1100
committerJake Mannens <jakem_5@hotmail.com>2020-03-25 13:21:37 +1100
commitddb2cfd8a74670382e61bad0b567f3d30e9aea70 (patch)
treef3208f7ff10a187442c26a48a0d68c5b134ef7db /src/echo.c
Initial commitHEADmaster
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');
+}