diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2006-04-13 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:47 +0300 |
commit | 83911c8529146922f2d32b04d8d6107aaf338fb8 (patch) | |
tree | 5cef47b652cf2659635a6631bf8eb1a27abd5c93 /Common/StdOutStream.cpp | |
parent | cb9eea7264409202d974b41b08d976ddbca6d203 (diff) |
4.38 beta
Diffstat (limited to 'Common/StdOutStream.cpp')
-rwxr-xr-x | Common/StdOutStream.cpp | 7 |
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(); |