| 221 | } |
| 222 | |
| 223 | const char * |
| 224 | hoedown_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 | |
| 237 | void |
| 238 | hoedown_buffer_printf(hoedown_buffer *buf, const char *fmt, ...) |
no test coverage detected