* Get the size of a file. * * @param index The index given by File_Open() of the file. * @return The size of the file. */
| 832 | * @return The size of the file. |
| 833 | */ |
| 834 | uint32 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. |
no outgoing calls
no test coverage detected