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

Function sum_values

tests/test_hash_table.c:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135
136static int foreach_sum;
137static void sum_values(const char *key, void *value, void *userdata) {
138 (void)key;
139 (void)userdata;
140 foreach_sum += *(int *)value;
141}
142
143TEST(ht_foreach) {
144 CBMHashTable *ht = cbm_ht_create(8);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected