#include <stdio.h>
int fseek (
FILE* stream, /* file stream */
long offset, /* file position offset */
int origin); /* initial offset origin */
Description
The function fseek positions the file cursor to a new
location. The parameter stream is a file pointer
defining the file. The parameter offset is a long
value defining the number of bytes to move. The parameter origin is an integer defining the file cursor location.
The function is included in the library RL-FlashFS. The prototype
is defined in the file stdio.h.
The parameter origin can have one of the
following values:
Origin Value
Description
SEEK_CUR
Current position of the file cursor.
SEEK_END
End of the file.
SEEK_SET
Beginning of the file.
The file cursor can be positioned anywhere within the file.
FlashFS does not allowfseek to position file cursor
past the end of the file. Attempts to position the file cursor
past the end of the file causes an error.
note
When using EFS, fseek works only for files opened in read
mode. Seeking within files opened for writing is not supported.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.