MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Filename_WithoutPath

Function Filename_WithoutPath

code/client/snd_mem.cpp:277–289  ·  view source on GitHub ↗

maybe I'm re-inventing the wheel, here, but I can't see any functions that already do this, so...

Source from the content-addressed store, hash-verified

275// maybe I'm re-inventing the wheel, here, but I can't see any functions that already do this, so...
276//
277char *Filename_WithoutPath(const char *psFilename)
278{
279 static char sString[MAX_QPATH]; // !!
280 const char *p = strrchr(psFilename,'\\');
281
282 if (!p++)
283 p=psFilename;
284
285 strcpy(sString,p);
286
287 return sString;
288
289}
290
291// returns (eg) "\dir\name" for "\dir\name.bmp"
292//

Callers 3

R_CheckMP3sFunction · 0.70
SetupNewFileParseMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected