• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <assert.h>
2 #include <stdio.h>
3 
main()4 int main() {
5   FILE* file = fopen("/sandbox/input.txt", "r");
6   assert(file != NULL);
7 
8   char c = fgetc(file);
9   while (c != EOF) {
10     int wrote = fputc(c, stdout);
11     assert(wrote != EOF);
12     c = fgetc(file);
13   }
14 }
15