m2m_fs_get_size_with_handle

UINT32 m2m_fs_get_size_with_handle(M2M_T_FS_HANDLE filehandle)

 

Description: the function returns the size of a file identified by the handle. It moves the data pointer at the beginning of the file, calculates the file size, and places again the data pointer at the beginning of the file. Be careful: the function returns the current size of the file even if it has not been saved. See m2m_fs_get_size(...).

 

Parameters:
filehandle:     file handle

 

Return value:
         on success:   file size in bytes
         on failure:     M2M_FS_ERROR

 

NOTE: m2m_fs_last_error function returns the failure reason.