Syscall index: 0x1DA9
Function signature: int Bfile_SeekFile_OS(int handle, int pos)
Changes the position in the file handle, similar to fseek.\
- handle: File handle as returned by Bfile_OpenFile_OS.
- pos: Position (absolute, not relative) to seek to.\
Returns the new position in the file handle.\
This function seeks to an absolute location in the file pointer. To seek backwards, use Bfile_GetFileSize_OS and add the offset to that.
Using Bfile functions while user timers are installed can cause SYSTEM ERRORs and other undefined behavior, especially with functions that change data on the file system. Make sure to stop and uninstall all timers before using Bfile functions (and optionally restore them later). See Incompatibility_between_Bfile_Syscalls_and_Timers for more information.