...
Consequently, using any other values for pos will result in undefined behavior and should be avoided.
...
Noncompliant Code Example
The following non-compliant noncompliant code attempts to read three values from a file and then set the cursor position back to the beginning of the file and return to the caller.
...