Receiving input from a stream directly following an output to that stream without an intervening call to fflush()
, fseek()
, fsetpos()
, or rewind()
results in undefined behavior. Therefore, a call to one of these functions is necessary in between input and output to the same update stream.
...