UINT32 m2m_fs_get_size(CHAR *filename)
Description: the function returns the size of the selected file identified by name. Be careful: it returns the size of the saved counterpart of the file. If the file size is changed, the result of the function is not updated until the file has been saved (closed). See m2m_fs_get_size_with_handle(...).
Parameters:
filename: pointer to the zero-terminated
string containing the name of the file.
Return
value:
on
success: file size in bytes
on
failure: if the return value is zero, the file size 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.