ULONG oldpos = hw_FSeek(APTR handle, ULONG pos, int mode);
HWFSEEKMODE_CURRENT:
HWFSEEKMODE_BEGINNING:
HWFSEEKMODE_END:
To find out the current position of the read/write cursor, call hw_FSeek()
with a 0 zero position and HWFSEEKMODE_CURRENT
.
If there was an error, hw_FSeek()
return -1.
Note that hw_FSeek()
currently isn't able to handle negative seek positions.
Thus, the value you pass in parameter 2 must always be positive.
Starting with Hollywood 6.0 there is also a 64-bit version of this command: See hw_FSeek64 for details.
This function is thread-safe.