We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e680a commit b94433aCopy full SHA for b94433a
tests/hello_world_file.cpp
@@ -1,6 +1,10 @@
1
#include <stdio.h>
2
int main() {
3
FILE *file = fopen("tests/hello_world_file.txt", "rb");
4
+ if (!file) {
5
+ printf("cannot open file\n");
6
+ return 1;
7
+ }
8
while (!feof(file)) {
9
char c = fgetc(file);
10
if (c != EOF) {
0 commit comments