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

Function adr_find_section

internal/cbm/doc_adr.c:914–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914static int adr_find_section(const adr_doc_t *d, adr_sec_t kind) {
915 for (int h = 0; h < d->nheads; h++) {
916 if (adr_section_kind(d->heads[h].title, d->heads[h].title_n) == kind) {
917 return h;
918 }
919 }
920 return CBM_NOT_FOUND;
921}
922
923/* The value of header field `key` between the title and the first body
924 * heading (the first lines when there is no heading). */

Callers 1

cbm_adr_extractFunction · 0.85

Calls 1

adr_section_kindFunction · 0.85

Tested by

no test coverage detected