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

Function cluster_id_cmp

src/store/store.c:10506–10510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10504};
10505
10506static int cluster_id_cmp(const void *key, const void *el) {
10507 int64_t k = *(const int64_t *)key;
10508 int64_t e = *(const int64_t *)el;
10509 return (k > e) - (k < e);
10510}
10511
10512/* Index of node id within the id-sorted ids[], or CBM_NOT_FOUND. */
10513static int cluster_id_index(const int64_t *ids, int n, int64_t id) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected