diff options
author | pankunull <panku_null@proton.me> | 2025-08-25 05:55:36 +0200 |
---|---|---|
committer | pankunull <panku_null@proton.me> | 2025-08-25 05:55:36 +0200 |
commit | a0e771c8b5f1e12d4bc3afeb8f40d17e76a4951a (patch) | |
tree | 866de5d286acb2de7bd0166c2332792135ffb21e /src/c/copyfile/cf.c | |
parent | bdb05a5943ce75a2ded5f4dbfa16d5e3de29093c (diff) |
Added new stuff.
Diffstat (limited to 'src/c/copyfile/cf.c')
-rw-r--r-- | src/c/copyfile/cf.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/c/copyfile/cf.c b/src/c/copyfile/cf.c new file mode 100644 index 0000000..ff6b41a --- /dev/null +++ b/src/c/copyfile/cf.c @@ -0,0 +1,15 @@ +#include <stdio.h> +/* copy input to output; 2nd version */ + +int +main() +{ + int c; + + while ((c = getchar()) != EOF) + { + putchar(c); + } + + return 0; +} |