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

Function trimLeadingCurrentDirConst

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

pathname must be valid */

Source from the content-addressed store, hash-verified

752
753/* pathname must be valid */
754static const char* trimLeadingCurrentDirConst(const char *pathname)
755{
756 assert(pathname != NULL);
757 if ((pathname[0] == '.') && (pathname[1] == PATH_SEP))
758 return pathname + 2;
759 return pathname;
760}
761
762static char*
763trimLeadingCurrentDir(char *pathname)

Callers 2

trimLeadingCurrentDirFunction · 0.85
trimPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected