fix: memfile reading on linux vs windows
This commit is contained in:
@@ -11,9 +11,12 @@ int main(void) {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fseek(memfile, 0, SEEK_SET);
|
fseek(memfile, 0, SEEK_SET);
|
||||||
fread(output, sizeof(char), sizeof(output), memfile);
|
fread(output, sizeof(char), sizeof(output), memfile);
|
||||||
#endif
|
|
||||||
printf("%s", output);
|
printf("%s", output);
|
||||||
fclose(memfile);
|
fclose(memfile);
|
||||||
|
#else
|
||||||
|
fclose(memfile);
|
||||||
|
printf("%s", output);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
printf("null\n");
|
printf("null\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user