Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>streambuf::sync</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
streambuf::sync

Usage

   #include <iostream.hpp>
   virtual int streambuf::sync();

Description

   Synchronizes the streambuf object with its ultimate source and its
   ultimate destination. This means that characters in the get area are
   effectively given back to the source (though this may only mean that the
   source read pointer is moved back), and the characters in the put area
   are sent to the destination.

   The get and put areas will be empty after a sucessful sync. The sync
   function returns EOF if an error occurs.

Example 

   // ostream flush() is implemented as:
   rdbuf()->sync();

Return Value

   EOF on error, some other int on success.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson