Operating System - OpenVMS
1828576 Members
2357 Online
109982 Solutions
New Discussion

Implications using fsetpos and fgetpos

 
ram_47
Frequent Advisor

Implications using fsetpos and fgetpos

Do functions like fsetpos and fgetpos have any implications on the EOF? Each time am reading an extra record which is obviously junk.
1 REPLY 1
Kris Clippeleyr
Honored Contributor

Re: Implications using fsetpos and fgetpos

Ram,

fsetpos & fgetpos do not influence the EOF.
However, if fgetpos returns an error then the opaque struct fpos_t cannot be used in a subsequent fsetpos.

Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...