Set the file pointer to any location within the file fid.
The pointer is positioned offset characters from the origin, which may be one of the predefined variables
SEEK_CUR
(current position),SEEK_SET
(beginning), orSEEK_END
(end of file) or strings "cof", "bof" or "eof". If origin is omitted,SEEK_SET
is assumed. The offset must be zero, or a value returned byftell
(in which case origin must beSEEK_SET
).Return 0 on success and -1 on error.