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

Function compareDir

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

Source from the content-addressed store, hash-verified

874}
875
876static int compareDir(const void* pathname1, const void* pathname2) {
877 /* sort it after remove the leading '/' or './'*/
878 const char* s1 = trimPath(*(char * const *) pathname1);
879 const char* s2 = trimPath(*(char * const *) pathname2);
880 return strcmp(s1, s2);
881}
882
883static void
884makeUniqueMirroredDestDirs(char** srcDirNames, unsigned nbFile, const char* outDirName)

Callers

nothing calls this directly

Calls 2

trimPathFunction · 0.85
strcmpFunction · 0.85

Tested by

no test coverage detected