...
However, since only the return value of a getpos() call is valid to be used with setpos(), passing a specified int in an fpos_t value that was created in any other way instead may not work. It is possible that the position will be set to an arbitrary location in the file.
...