MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetFileExt

Function GetFileExt

editor/TableFileFilterMng.cpp:823–835  ·  view source on GitHub ↗

Get extension of a file

Source from the content-addressed store, hash-verified

821
822// Get extension of a file
823bool GetFileExt(char *file, char *ext) {
824 char *temp;
825 if (strlen(file) < 4)
826 return FALSE;
827
828 temp = (file + strlen(file) - 4);
829 strcpy(ext, temp);
830
831 if (ext[0] != '.')
832 return FALSE;
833
834 return TRUE;
835}
836
837// Determines what pages are required by the currently loaded level,
838// and processes each one appropriately

Callers 2

ProcessPageFromFileMethod · 0.85
AddAllGamefilePagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected