first commit!
This commit is contained in:
17
filecopy.c
Normal file
17
filecopy.c
Normal file
@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int character;
|
||||
|
||||
/*
|
||||
character = getchar();
|
||||
while (character != EOF) {
|
||||
putchar(character);
|
||||
character = getchar();
|
||||
}
|
||||
* which can be rewritten as...
|
||||
*/
|
||||
|
||||
while ((character = getchar()) != EOF)
|
||||
putchar(character);
|
||||
}
|
Reference in New Issue
Block a user