The pf_lseek function moves the file read pointer of the open file.
FRESULT pf_lseek ( DWORD Offset /* File offset in unit of byte */ );
The pf_lseek function moves the file read pointer of the open file. The offset can be specified in only origin from top of the file.
// Move to offset of 5000 from top of the file. res = pf_lseek(5000); // Forward 3000 bytes res = pf_lseek(fs.fptr + 3000); // Rewind 2000 bytes (take care on overflow) res = pf_lseek(fs.fptr - 2000);
Available when _USE_LSEEK == 1.