MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_strbuf_put

Function cmark_strbuf_put

src/buffer.c:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void cmark_strbuf_put(cmark_strbuf *buf, const unsigned char *data,
100 bufsize_t len) {
101 if (len <= 0)
102 return;
103
104 S_strbuf_grow_by(buf, len);
105 memmove(buf->ptr + buf->size, data, len);
106 buf->size += len;
107 buf->ptr[buf->size] = '\0';
108}
109
110void cmark_strbuf_puts(cmark_strbuf *buf, const char *string) {
111 cmark_strbuf_put(buf, (const unsigned char *)string, (bufsize_t)strlen(string));

Callers 15

houdini_escape_htmlFunction · 0.85
add_lineFunction · 0.85
S_parser_feedFunction · 0.85
S_process_lineFunction · 0.85
houdini_unescape_entFunction · 0.85
houdini_unescape_htmlFunction · 0.85
houdini_unescape_html_fFunction · 0.85
escape_xmlFunction · 0.85
cmark_strbuf_putsFunction · 0.85
encode_unknownFunction · 0.85
cmark_utf8proc_checkFunction · 0.85

Calls 1

S_strbuf_grow_byFunction · 0.85

Tested by

no test coverage detected