| 912 | } |
| 913 | |
| 914 | static 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). */ |
no test coverage detected