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

Function cmark_strbuf_clear

src/buffer.c:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void cmark_strbuf_clear(cmark_strbuf *buf) {
72 buf->size = 0;
73
74 if (buf->asize > 0)
75 buf->ptr[0] = '\0';
76}
77
78void cmark_strbuf_set(cmark_strbuf *buf, const unsigned char *data,
79 bufsize_t len) {

Callers 6

S_parser_feedFunction · 0.85
S_process_lineFunction · 0.85
cmark_parser_finishFunction · 0.85
cmark_strbuf_setFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected