Add stdinfile.c

This commit is contained in:
BBaoVanC 2020-12-02 15:11:40 -06:00
parent 64840bf4fd
commit 86c4afa38a
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 11 additions and 0 deletions

11
stdinfile.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
int main() {
int c = getc(stdin);
while (c != EOF) {
putchar(c);
c = getc(stdin);
}
getchar();
return 0;
}