NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
int fseek ( byte  handle,
long  offset,
int  origin 
)
inline

Reposition file position indicator.

Sets the position indicator associated with the file to a new position defined by adding offset to a reference position specified by origin.

Parameters
handleThe handle of the file.
offsetThe number of bytes to offset from origin.
originPosition from where offset is added. It is specified by one of the following constants: SEEK_SET - beginning of file, SEEK_CUR - current position of the file pointer, or SEEK_END - end of file. fseek origin constants
Returns
A value of zero if successful or non-zero otherwise. See Loader module error codes.
Warning
This function requires the enhanced NBC/NXC firmware version 1.28+.
Examples:
ex_fseek.nxc.