Итак, я создал следующий пример:
Код: Выделить всё
#include
#include
int main()
{
FILE* fp = std::fopen("/tmp/test", "w+");
std::fclose(fp);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79139181/fflush-on-invalid-file-pointer-returns-0-if-compiled-with-sanitizer[/url]
Мобильная версия