2.1.9 fseek()

void fseek(int filehandle, int offset, int whence=SEEK_END)
Move the file position pointer by offset bytes for the file associated with filehandle.
The starting point for the move is determined by the whence parameter:
SEEK_SET
The new position is offset. The movement was relative to the start of the file.
SEEK_CUR
The new position is the current position plus offset.
SEEK_END
The new position is the end of file plus offset. The movement is relative to the start of the file. To move backwards from the end of file, a negative value must be supplied for offset.
Non-ConfidentialPDF file icon PDF versionARM DUI0371M
Copyright © 2007-2014 ARM. All rights reserved.