...
CERT C++ Secure Coding Standard | FIO39-CPP. Do not alternately input and output from a stream without an intervening flush or positioning call |
CERT C Secure Coding Standard | void FIO07-C. Prefer fseek() to rewind() |
ISO/IEC TS 17961 | Interleaving stream inputs and outputs without a flush or positioning call [ioileave] |
...
[ISO/IEC 9899:2011] | Subclause 7.21.5.3, "The fopen Function" |
...