Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Common/StdOutStream.cpp')
-rwxr-xr-xCommon/StdOutStream.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Common/StdOutStream.cpp b/Common/StdOutStream.cpp
index b00fc399..5ab0f10b 100755
--- a/Common/StdOutStream.cpp
+++ b/Common/StdOutStream.cpp
@@ -31,6 +31,13 @@ bool CStdOutStream::Close()
return !_streamIsOpen;
}
+bool CStdOutStream::Flush()
+{
+ if(!_streamIsOpen)
+ return false;
+ return (fflush(_stream) == 0);
+}
+
CStdOutStream::~CStdOutStream ()
{
Close();