Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Calling fsetpos() sets the file position indicator of a file stream. According to C99, the only values that are correct for the position parameter for fsetpos() are values returned from the fgetpos(). Using any other values will result in undefined behavior and should be avoided.

Non-Compliant Code Example

...