Append a line to the current section content buffer. */
| 7847 | |
| 7848 | /* Append a line to the current section content buffer. */ |
| 7849 | static void adr_append_line(char *buf, int buf_sz, int *len, const char *line, int line_len) { |
| 7850 | if (*len > 0) { |
| 7851 | buf[(*len)++] = '\n'; |
| 7852 | } |
| 7853 | if (*len + line_len < buf_sz - SKIP_ONE) { |
| 7854 | memcpy(buf + *len, line, line_len); |
| 7855 | *len += line_len; |
| 7856 | buf[*len] = '\0'; |
| 7857 | } |
| 7858 | } |
| 7859 | |
| 7860 | cbm_adr_sections_t cbm_adr_parse_sections(const char *content) { |
| 7861 | cbm_adr_sections_t result; |
no outgoing calls
no test coverage detected