MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / File_GetSize

Function File_GetSize

src/file.c:834–840  ·  view source on GitHub ↗

* Get the size of a file. * * @param index The index given by File_Open() of the file. * @return The size of the file. */

Source from the content-addressed store, hash-verified

832 * @return The size of the file.
833 */
834uint32 File_GetSize(uint8 index)
835{
836 if (index >= FILE_MAX) return 0;
837 if (s_file[index].fp == NULL) return 0;
838
839 return s_file[index].size;
840}
841
842/**
843 * Delete a file from the disk.

Callers 4

File_Exists_ExFunction · 0.85
File_ReadWholeFileFunction · 0.85
File_ReadWholeFileLE16Function · 0.85
File_ReadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected