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

Function hoedown_buffer_putf

libraries/hoedown/src/buffer.c:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149int
150hoedown_buffer_putf(hoedown_buffer *buf, FILE *file)
151{
152 assert(buf && buf->unit);
153
154 while (!(feof(file) || ferror(file))) {
155 hoedown_buffer_grow(buf, buf->size + buf->unit);
156 buf->size += fread(buf->data + buf->size, 1, buf->unit, file);
157 }
158
159 return ferror(file);
160}
161
162void
163hoedown_buffer_set(hoedown_buffer *buf, const uint8_t *data, size_t size)

Callers

nothing calls this directly

Calls 1

hoedown_buffer_growFunction · 0.85

Tested by

no test coverage detected