Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

basic_istream::sync 

Synchronizes the input device associated with the stream with the stream's buffer.


int sync( );

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.

Header: <istream>

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.