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

Function trimLeadingCurrentDir

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

Source from the content-addressed store, hash-verified

760}
761
762static char*
763trimLeadingCurrentDir(char *pathname)
764{
765 /* 'union charunion' can do const-cast without compiler warning */
766 union charunion {
767 char *chr;
768 const char* cchr;
769 } ptr;
770 ptr.cchr = trimLeadingCurrentDirConst(pathname);
771 return ptr.chr;
772}
773
774/* remove leading './' or '/' chars here */
775static const char * trimPath(const char *pathname)

Callers 1

mirrorSrcDirRecursiveFunction · 0.85

Calls 1

Tested by

no test coverage detected