#ifndef BUF_H #define BUF_H #include 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