Format: Flush file stream just in case

This commit is contained in:
Riyyi
2022-08-23 15:23:06 +02:00
parent 0448e01f0a
commit bbeab2efd0
+2 -1
View File
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/
#include <cstdio> // FILE, fputs, stdout, stderr
#include <cstdio> // FILE, fflush, fputs, stdout, stderr
#include <iomanip> // setprecision
#include <ios> // defaultfloat, fixed
#include <sstream> // stringstream
@@ -22,6 +22,7 @@ void variadicPrint(FILE* file, std::string_view format, TypeErasedParameters& pa
std::string string = stream.str();
fputs(string.c_str(), file);
fflush(file);
}
// -----------------------------------------