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

Function exeNameMatch

freebsd/contrib/zstd/programs/zstdcli.c:270–274  ·  view source on GitHub ↗

! exeNameMatch() : @return : a non-zero value if exeName matches test, excluding the extension */

Source from the content-addressed store, hash-verified

268 @return : a non-zero value if exeName matches test, excluding the extension
269 */
270static int exeNameMatch(const char* exeName, const char* test)
271{
272 return !strncmp(exeName, test, strlen(test)) &&
273 (exeName[strlen(test)] == '\0' || exeName[strlen(test)] == '.');
274}
275
276static void errorOut(const char* msg)
277{

Callers 1

mainFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by

no test coverage detected