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.

Copyright © 2007-2010 ARM. All rights reserved.ARM DUI 0371I
Non-ConfidentialID051811