...
Consequently, a call to fseek()
, fflush()
, or fsetpos()
is necessary between input and output to the same stream (see FIO07-C. Prefer fseek() to rewind().)
Noncompliant Code Example
...
Alternately inputting and outputting from a stream without an intervening flush or positioning call results in is undefined behavior.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
FIO39-C | Low | Likely | Medium | P6 | L2 |
...