You can use these methods to synchronize related streams with one another:
0 means no stream is tied.
stdio are designed to work together, you may have to choose between efficient C++ streams output and output compatible with C stdio . Use `ios::sync_with_stdio()' to select C compatibility.
The argument switch is a gnu extension; use 0 as the argument to choose output that is not necessarily compatible with C stdio . The default value for switch is 1 .
If you install the stdio implementation that comes with gnu libio , there are compatible input/output facilities for both C and C++. In that situation, this method is unnecessary---but you may still want to write programs that call it, for portability.