int fseek(FILE *stream
, long intoffset
Sets the file position of the stream to the given offset. The argument offset signifies the number of bytes to seek from the given whence position. The argumentwhence can be:
|Seeks from the beginning of the file.|
|Seeks from the current position.|
|Seeks from the end of the file.|
On a text stream, whence should be
SEEK_SET and offset should be either zero or a value returned from
The end-of-file indicator is reset. The error indicator is NOT reset.
On success zero is returned. On error a nonzero value is returned.