MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / dStripPath

Function dStripPath

Engine/source/core/strings/stringFunctions.cpp:566–576  ·  view source on GitHub ↗

Strip the path from the input filename

Source from the content-addressed store, hash-verified

564
565/// Strip the path from the input filename
566char* dStripPath(const char* filename)
567{
568 const char* itr = filename + dStrlen(filename);
569 while(--itr != filename) {
570 if (*itr == '/' || *itr == '\\') {
571 itr++;
572 break;
573 }
574 }
575 return dStrdup(itr);
576}
577
578char* dStristr( char* str1, const char* str2 )
579{

Callers

nothing calls this directly

Calls 1

dStrlenFunction · 0.70

Tested by

no test coverage detected