MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / hoedown_buffer_cstr

Function hoedown_buffer_cstr

libraries/hoedown/src/buffer.c:223–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223const char *
224hoedown_buffer_cstr(hoedown_buffer *buf)
225{
226 assert(buf && buf->unit);
227
228 if (buf->size < buf->asize && buf->data[buf->size] == 0)
229 return (char *)buf->data;
230
231 hoedown_buffer_grow(buf, buf->size + 1);
232 buf->data[buf->size] = 0;
233
234 return (char *)buf->data;
235}
236
237void
238hoedown_buffer_printf(hoedown_buffer *buf, const char *fmt, ...)

Callers 1

cstrMethod · 0.85

Calls 1

hoedown_buffer_growFunction · 0.85

Tested by

no test coverage detected