blob: badb0ee2676bbe9c9cdc30269c3a2e0158ebab2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <assert.h>
#include <stdio.h>
int main() {
FILE* file = fopen("/sandbox/subdir/input_link.txt", "r");
assert(file != NULL);
char c = fgetc(file);
while (c != EOF) {
int wrote = fputc(c, stdout);
assert(wrote != EOF);
c = fgetc(file);
}
}
|