iostream hierarchy
filebuf:: sync [virtual] [protected]
  cplusplus.com  
int sync ( );

Synchronize file buffer.
  Synchronizes the content of the internal file buffer with the physical file.

Parameters.

none
 

Return Value.
  In case of success zero is returned, Otherwise the function returns -1.

Basic template member declaration ( basic_filebuf<charT,traits> ):
int sync ( );

See also.
  streambuf::pubsync
  filebuf class


© The C++ Resources Network, 2001