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>filebuf::sync</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
filebuf::sync

Usage

   #include <fstream.hpp>
   virtual int filebuf::sync();

Description

   The file pointer is moved back by the number of characters available to
   be got from the get area, and the contents of the get area are thrown
   away. If the file does not support seeking, the contents of the get area
   are thrown away.

   The contents of the put area are then written to the current file pointer
   position, the file pointer being advanced as this happens.

Example 

   // Used by ostream flush() as in:
   rdbuf()->sync();

Return Value

   EOF on failure, some other int value otherwise.




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