Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Synchronizes the input device associated with the stream with the stream's buffer.
int sync( );
Return Value
If rdbuf is a null pointer, the function returns -1. Otherwise, it calls rdbuf ->pubsync. If that returns -1, the function calls setstate(badbit) and returns -1. Otherwise, the function returns zero.
Requirements
Header: <istream>
Namespace: std