m2m_fs_seek

UINT32 m2m_fs_seek(M2M_T_FS_HANDLE filehandle, UINT32 offset)

 

Description: the function moves the current data pointer to the new data pointer (offset value). The data writing/reading starts from the offset+1 position. If the offset value is greater than the current file size, accordingly the file size becomes larger. See also m2m_fs_ tell(...) API.

 

 

Parameters:
filehandle:     file handle

offset:          new current data pointer

 

 

Return value:

         on success:   new current data pointer

         on failure:     if the return value is zero, the offset value is zero or an error could be

happened. In this case, call the m2m_fs_last_error(...) API.

 

 

 

NOTE: m2m_fs_last_error function returns the failure reason.