MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lastNameFromPath

Function lastNameFromPath

freebsd/contrib/zstd/programs/zstdcli.c:259–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259static const char* lastNameFromPath(const char* path)
260{
261 const char* name = path;
262 if (strrchr(name, '/')) name = strrchr(name, '/') + 1;
263 if (strrchr(name, '\\')) name = strrchr(name, '\\') + 1; /* windows */
264 return name;
265}
266
267/*! exeNameMatch() :
268 @return : a non-zero value if exeName matches test, excluding the extension

Callers 1

mainFunction · 0.85

Calls 1

strrchrFunction · 0.85

Tested by

no test coverage detected