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

Function UTIL_isDirectoryStat

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

Source from the content-addressed store, hash-verified

205}
206
207int UTIL_isDirectoryStat(const stat_t* statbuf)
208{
209#if defined(_MSC_VER)
210 return (statbuf->st_mode & _S_IFDIR) != 0;
211#else
212 return S_ISDIR(statbuf->st_mode) != 0;
213#endif
214}
215
216int UTIL_compareStr(const void *p1, const void *p2) {
217 return strcmp(* (char * const *) p1, * (char * const *) p2);

Callers 2

UTIL_isDirectoryFunction · 0.85
getDirModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected