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

Function trimPath

freebsd/contrib/zstd/programs/util.c:775–779  ·  view source on GitHub ↗

remove leading './' or '/' chars here */

Source from the content-addressed store, hash-verified

773
774/* remove leading './' or '/' chars here */
775static const char * trimPath(const char *pathname)
776{
777 return trimLeadingRootChar(
778 trimLeadingCurrentDirConst(pathname));
779}
780
781static char* mallocAndJoin2Dir(const char *dir1, const char *dir2)
782{

Callers 4

mirrorSrcDirFunction · 0.85
compareDirFunction · 0.85

Calls 2

trimLeadingRootCharFunction · 0.85

Tested by

no test coverage detected