From 86c4afa38a005c90fa6106b0d19b9f98c2fb4020 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Wed, 2 Dec 2020 15:11:40 -0600 Subject: [PATCH] Add stdinfile.c --- stdinfile.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 stdinfile.c diff --git a/stdinfile.c b/stdinfile.c new file mode 100644 index 0000000..b1acf18 --- /dev/null +++ b/stdinfile.c @@ -0,0 +1,11 @@ +#include + +int main() { + int c = getc(stdin); + while (c != EOF) { + putchar(c); + c = getc(stdin); + } + getchar(); + return 0; +}