diff options
Diffstat (limited to 'buf.h')
-rw-r--r-- | buf.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#ifndef BUF_H +#define BUF_H + +#include <stddef.h> + +struct buf { + size_t sz, cap; + char *buf; +}; + +void buf_init(struct buf *, size_t); +void buf_grow(struct buf *, size_t); +void buf_free(struct buf *); + +#endif |