MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / ExtractFileName

Function ExtractFileName

PanzerChasm/vfs.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static const char* ExtractFileName( const char* const file_path )
39{
40 const char* file_name_pos= file_path;
41
42 const char* str= file_path;
43 while( *str != '\0' )
44 {
45 if( *str == '/' || *str == '\\' )
46 file_name_pos= str + 1u;
47
48 str++;
49 }
50
51 return file_name_pos;
52}
53
54static std::string PrepareAddonPath( const char* const addon_path )
55{

Callers 1

ReadFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected