The Microsoft Input/Output Stream Classes (iostream.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
streambuf::sync
streambuf                                   Up Contents Index Back
──The Microsoft iostream Classes────────────────────────────────────────────
 
  virtual int sync();
 
  Remarks
 
  The virtual sync function, together with the overflow and underflow
  functions, defines the characteristics of the streambuf-derived class.
  Each derived class might implement sync differently, but the interface
  with the calling stream class is the same.
 
  The sync function flushes the put area. It also empites the get area
  and, in the process, sends any unprocessed characters back to the
  source, if necessary.
 
  Default Implementation
 
  Returns 0 if the get area is empty and there are no more characters to
  output; otherwise, it returns EOF.
 
  Return Value
 
  EOF if an error occurs.
 
  See Also
 
  streambuf::overflow
 
 
                                     -♦-