Append a line to the current section content buffer. */
| 5708 | |
| 5709 | /* Append a line to the current section content buffer. */ |
| 5710 | static void adr_append_line(char *buf, int buf_sz, int *len, const char *line, int line_len) { |
| 5711 | if (*len > 0) { |
| 5712 | buf[(*len)++] = '\n'; |
| 5713 | } |
| 5714 | if (*len + line_len < buf_sz - SKIP_ONE) { |
| 5715 | memcpy(buf + *len, line, line_len); |
| 5716 | *len += line_len; |
| 5717 | buf[*len] = '\0'; |
| 5718 | } |
| 5719 | } |
| 5720 | |
| 5721 | cbm_adr_sections_t cbm_adr_parse_sections(const char *content) { |
| 5722 | cbm_adr_sections_t result; |
no outgoing calls
no test coverage detected