We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a9021 commit 3ebdcd2Copy full SHA for 3ebdcd2
WaveSabreStandAlonePlayer/main.cpp
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
47
size_t result;
48
49
pFile = fopen(argv[1], "rb");
50
- if (pFile == NULL) { fputs("File error", NULL); exit(1); }
+ if (pFile == NULL) { printf("File error\n"); exit(1); }
51
52
// obtain file size:
53
fseek(pFile, 0, SEEK_END);
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
59
60
// copy the file into the buffer:
61
result = fread(buffer, 1, lSize, pFile);
62
- if (result != lSize) { fputs("Reading error", NULL); exit(3); }
+ if (result != lSize) { printf("Reading error\n"); exit(3); }
63
64
// terminate
65
fclose(pFile);
0 commit comments