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 2ec7bdd commit aa42121Copy full SHA for aa42121
platform/Stream.cpp
@@ -147,7 +147,7 @@ int Stream::printf(const char *format, ...)
147
lock();
148
std::va_list arg;
149
va_start(arg, format);
150
- fflush(_file);
+ std::fseek(_file, 0, SEEK_CUR);
151
int r = vfprintf(_file, format, arg);
152
va_end(arg);
153
unlock();
@@ -169,7 +169,7 @@ int Stream::scanf(const char *format, ...)
169
int Stream::vprintf(const char *format, std::va_list args)
170
{
171
172
173
int r = vfprintf(_file, format, args);
174
175
return r;
0 commit comments