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

Function trimLeadingRootChar

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

pathname must be valid */

Source from the content-addressed store, hash-verified

743
744/* pathname must be valid */
745static const char* trimLeadingRootChar(const char *pathname)
746{
747 assert(pathname != NULL);
748 if (pathname[0] == PATH_SEP)
749 return pathname + 1;
750 return pathname;
751}
752
753/* pathname must be valid */
754static const char* trimLeadingCurrentDirConst(const char *pathname)

Callers 1

trimPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected