basic_istream::sync
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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>

Show:
© 2016 Microsoft