You are currently viewing the documentation for:
ECF_GetFileSize
ECF_GetFileSize function gets the size of a currently open file.
ECF_ErrorCode ECF_GetFileSize(
   const struct ECF_FileHandle *pFileHandle,
   uint32_t *pFileSize
);
Parameters
pFileHandle
A pointer to an open file handle.
pFileSize
A pointer to a uint32_t to hold the file size.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success)
Remarks
This can only be used to retrieve the size of an open file. To get the size of a file on disk, use ECF_GetFileInfo() instead.
See also