Reposition stream position indicator.
Sets the position indicator associated with the stream to a new position.
- Parameters
-
stream | Pointer to a FILE object that identifies the stream to be closed. |
offset | Number of bytes to offset from origin. |
origin | Position used as reference for the offset. It is specified by one of the constants (file begin: SEEK_SET, current position: SEEK_CUR, end of file: SEEK_END). |
- Returns
- If successful, the function returns zero. Otherwise, it returns non-zero value and error indicator is set.