06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

fgetpos pREPC+ <strong>System</strong> <strong>Calls</strong><br />

fgetpos Gets the current file position indicator for fsetpos.<br />

#include <br />

#include <br />

int fgetpos(<br />

FILE *stream, /* stream pointer */<br />

fpos_t *pos /* stream position */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

Notes<br />

The fgetpos() function stores the current value of the file position indicator for<br />

the stream pointed to by stream in the object pointed to by pos. This value can be<br />

used by the fsetpos() function to reposition the file position indicator of the<br />

stream to its position at the time of the call to the fgetpos() function.<br />

stream Points to an open pREPC+ stream.<br />

pos Points to the object where fgetpos() stores the current file<br />

position indicator.<br />

If successful, this function returns a zero. If not successful or if stream references<br />

an I/O device, this function returns an EOF and sets errno.<br />

Refer to Appendix B.<br />

Callable From<br />

■ Task<br />

3-36 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!