06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

fsetpos Sets file position by using the fgetpos result.<br />

#include <br />

#include <br />

int fsetpos(<br />

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

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

The fsetpos() function sets the position indicator for the stream pointed to by<br />

stream to the value of the object pointed to by pos.<br />

A successful call to fsetpos function clears the EOF indicator for the stream and<br />

undoes any effects of the ungetc function on the same stream.<br />

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

If stream refers to an I/O device, this function does nothing<br />

and returns a 0.<br />

pos Points to an object that specifies the new value of the<br />

position indicator. The object should contain a value<br />

previously returned by the fgetpos() function on the same<br />

stream.<br />

This function returns a 0 if successful and a nonzero number if unsuccessful. If an<br />

error occurs, errno is set.<br />

Refer to Appendix B.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 3-63<br />

3

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

Saved successfully!

Ooh no, something went wrong!