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; +}