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
-
handle | The handle of the file. |
offset | The number of bytes to offset from origin. |
origin | Position 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.