This is a file I/O function, also hardware dependent. It is not implemented in this Compiler.
#include <stdio.h>
int fseek(FILE *f, long offset, int mode);
fseek() sets the current position in file f.
For binary files, the position can be set in three ways, as shown in this table.
| Mode | Set Position |
|---|---|
| SEEK_SET | offset bytes from the beginning of the file. |
| SEEK_CUR | offset bytes from the current position. |
| SEEK_END | offset bytes from the end of the file. |
For text files, either offset must be zero or mode is SEEK_SET and offset a value returned by a previous call to ftell().
If fseek() is successful, it clears the file's end-of -file flag. The position cannot be set beyond the end of the file.
Zero, if successful; non-zero otherwise.
ftell()