MCPcopy Index your code
hub / github.com/GJDuck/e9patch / strncmp

Function strncmp

examples/stdlib.c:2648–2660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2646}
2647
2648static int strncmp(const char *s1, const char *s2, size_t n)
2649{
2650 for (; n > 0; n--)
2651 {
2652 int cmp = (int)*s1 - (int)*s2;
2653 if (cmp != 0)
2654 return cmp;
2655 if (*s1 == '\0')
2656 return 0;
2657 s1++; s2++;
2658 }
2659 return 0;
2660}
2661
2662static int strcmp(const char *s1, const char *s2)
2663{

Callers 5

startswithFunction · 0.85
check_sectionFunction · 0.85
test_stringFunction · 0.85
parsePEFunction · 0.85
strcmpFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_stringFunction · 0.68