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

Function find_binding_by_key

tests/test_pipeline.c:4720–4727  ·  view source on GitHub ↗

Helper: find binding by key in results */

Source from the content-addressed store, hash-verified

4718
4719/* Helper: find binding by key in results */
4720static const cbm_env_binding_t *find_binding_by_key(const cbm_env_binding_t *bindings, int count,
4721 const char *key) {
4722 for (int i = 0; i < count; i++) {
4723 if (strcmp(bindings[i].key, key) == 0)
4724 return &bindings[i];
4725 }
4726 return NULL;
4727}
4728
4729/* Helper: find binding by value in results */
4730static int has_binding_value(const cbm_env_binding_t *bindings, int count, const char *value) {

Callers 1

test_pipeline.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected