summaryrefslogtreecommitdiff
path: root/user/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'user/echo.c')
-rw-r--r--user/echo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/user/echo.c b/user/echo.c
new file mode 100644
index 0000000..ef744ab
--- /dev/null
+++ b/user/echo.c
@@ -0,0 +1,13 @@
+#include "kernel/types.h"
+#include "kernel/stat.h"
+#include "user/user.h"
+
+int
+main(int argc, char *argv[])
+{
+ int i;
+
+ for(i = 1; i < argc; i++)
+ printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n");
+ exit();
+}