The fseek function moves the file pointer associated with stream to the location that is offset bytes from origin. The next operation on the stream takes place at this new location. The origin may be one of the following manifest constant values: | Origin Value | Description |
|---|
| SEEK_CUR | Current position of file pointer. | | SEEK_END | End of the file. | | SEEK_SET | Beginning of the file. |
The fseek function may reposition the file pointer anywhere in the file or past the end of the file. Attempts to position the file pointer before the beginning of the file causes an error. The fseek function clears the end-of-file indicator. The fseek function is in the RL-FlashFS library. The prototype is defined in stdio.h. Note - Seeking within a file opened for "w" mode is currently unsupported.
|