summaryrefslogtreecommitdiff
path: root/userspace/echo.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-14 22:36:16 +0200
committerMiguel <m.i@gmx.at>2018-10-14 22:36:16 +0200
commit2a6690e9fd53a02613796764248006e06ac482d6 (patch)
treeea3063ef3ecd0808e9291faf6c56949d91b1b09e /userspace/echo.c
parent5aeab1c853e487aa0042d5c32200d623efe908d3 (diff)
ported vim et al
Diffstat (limited to 'userspace/echo.c')
-rw-r--r--userspace/echo.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/userspace/echo.c b/userspace/echo.c
new file mode 100644
index 0000000..9f6b9df
--- /dev/null
+++ b/userspace/echo.c
@@ -0,0 +1,10 @@
+int main(int argc, char **argv)
+{
+ for (int i=1;i<argc;i++)
+ {
+ if(!strcmp("\\n",argv[i]))
+ printf("\n");
+ else
+ printf("%s ",argv[i]);
+ }
+}