#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.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.