mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Open file as write-only in Z80.
This commit is contained in:
@@ -46,7 +46,7 @@ void Filenames(const char* path)
|
||||
|
||||
for(pos = 0; filenames[pos]; pos++)
|
||||
{
|
||||
h = fopen(filenames[pos], "w+");
|
||||
h = fopen(filenames[pos], "w");
|
||||
rc = 0;
|
||||
wRc = 0;
|
||||
cRc = 0;
|
||||
|
||||
@@ -48,8 +48,8 @@ void MillionFiles(const char* path)
|
||||
memset(filename, 0, 9);
|
||||
sprintf(filename, "%08ld", pos);
|
||||
|
||||
h = fopen(filename, "w+");
|
||||
if(h == NULL) { break; }
|
||||
h = fopen(filename, "w");
|
||||
if(h == NULL) break;
|
||||
|
||||
fclose(h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user