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

Function dStripPath

Engine/source/core/strings/stringFunctions.cpp:504–514  ·  view source on GitHub ↗

Strip the path from the input filename

Source from the content-addressed store, hash-verified

502
503/// Strip the path from the input filename
504char* dStripPath(const char* filename)
505{
506 const char* itr = filename + dStrlen(filename);
507 while(--itr != filename) {
508 if (*itr == '/' || *itr == '\\') {
509 itr++;
510 break;
511 }
512 }
513 return dStrdup(itr);
514}
515
516char* dStristr( char* str1, const char* str2 )
517{

Callers

nothing calls this directly

Calls 1

dStrlenFunction · 0.70

Tested by

no test coverage detected