summaryrefslogtreecommitdiffstats
path: root/1/6.c
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-11-16 19:33:57 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-11-16 19:33:57 +0800
commit5433f7161662106ac6337db8e6344a705bb18fc2 (patch)
treef2a332c0e171c42fa39907c4255b53ae54afae11 /1/6.c
parentcd68f56367811e1234a5584addb7752e1de43599 (diff)
downloadk&r-exercises-5433f7161662106ac6337db8e6344a705bb18fc2.tar.gz
1.6 and 1.7
Diffstat (limited to '1/6.c')
-rw-r--r--1/6.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/1/6.c b/1/6.c
new file mode 100644
index 0000000..c478c7a
--- /dev/null
+++ b/1/6.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ int c;
+
+ while ((c = getchar()) != EOF) {
+ putchar(c);
+ }
+
+ return 0;
+} \ No newline at end of file