Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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...