wtf wrote: |
---|
Does anyone know why I am unable to re-sync c++ streams with c stdio? |
Microsoft wrote: |
---|
The static member function stores a stdio sync flag, which is initially true. When true, this flag ensures that operations on the same file are properly synchronized between the iostreams functions and those defined in the Standard C++ Library. Otherwise, synchronization may or may not be guaranteed, but performance may be improved. The function stores _Sync in the stdio sync flag and returns its previous stored value. You can call it reliably only before performing any operations on the standard streams. |
|
|
wtf wrote: |
---|
I could still manually ensure the streams are synchronized by flushing the stream before calling printf though couldn't I? |