MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / kv_key_cmp

Function kv_key_cmp

internal/cbm/pdf/pdf_obj.c:726–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724} kv_seq_t;
725
726static int kv_key_cmp(const unsigned char *a, size_t an, const unsigned char *b, size_t bn) {
727 size_t m = an < bn ? an : bn;
728 int c = m ? memcmp(a, b, m) : 0;
729 if (c) {
730 return c;
731 }
732 return an < bn ? -1 : an > bn ? 1 : 0;
733}
734
735static int kv_seq_cmp(const void *x, const void *y) {
736 const kv_seq_t *a = (const kv_seq_t *)x;

Callers 3

kv_seq_cmpFunction · 0.85
kl_finish_dictFunction · 0.85
pdf_dfind_nFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected