summaryrefslogtreecommitdiff
path: root/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'echo.c')
-rw-r--r--echo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/echo.c b/echo.c
new file mode 100644
index 0000000..bf590a5
--- /dev/null
+++ b/echo.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+
+int main(void) {
+ int c;
+ while ((c = getchar()) != EOF) {
+ putchar(c);
+ }
+ return 0;
+} \ No newline at end of file