mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
17 lines
311 B
C
17 lines
311 B
C
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
for (int i = 0; i < 2; i++) {
|
||
|
FILE* file = fopen("/sandbox/input.txt", "r");
|
||
|
assert(file != NULL);
|
||
|
|
||
|
char c = fgetc(file);
|
||
|
while (c != EOF) {
|
||
|
int wrote = fputc(c, stdout);
|
||
|
assert(wrote != EOF);
|
||
|
c = fgetc(file);
|
||
|
}
|
||
|
}
|
||
|
}
|