Function physfs_sys::PHYSFS_seek[][src]

pub unsafe extern "C" fn PHYSFS_seek(
    handle: *mut PHYSFS_File,
    pos: PHYSFS_uint64
) -> c_int
Expand description

\fn int PHYSFS_seek(PHYSFS_File *handle, PHYSFS_uint64 pos) \brief Seek to a new position within a PhysicsFS filehandle.

The next read or write will occur at that place. Seeking past the beginning or end of the file is not allowed, and causes an error.

\param handle handle returned from PHYSFS_open*(). \param pos number of bytes from start of file to seek to. \return nonzero on success, zero on error. Use PHYSFS_getLastErrorCode() to obtain the specific error.

\sa PHYSFS_tell