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

Function memcmp

examples/stdlib.c:2607–2618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2605}
2606
2607static int memcmp(const void *a, const void *b, size_t n)
2608{
2609 const uint8_t *a8 = (const uint8_t *)a;
2610 const uint8_t *b8 = (const uint8_t *)b;
2611 for (size_t i = 0; i < n; i++)
2612 {
2613 int cmp = (int)a8[i] - (int)b8[i];
2614 if (cmp != 0)
2615 return cmp;
2616 }
2617 return 0;
2618}
2619
2620
2621static void *memchr(const void *a, int c, size_t n)

Callers 10

elf_compress_gnuFunction · 0.85
read_long_namesFunction · 0.85
determine_kindFunction · 0.85
test_stringFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
parseElfFunction · 0.85
emitRefactoredPatchFunction · 0.85
parseELFMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_stringFunction · 0.68