diff options
Diffstat (limited to 'buf.h')
-rw-r--r-- | buf.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/buf.h b/buf.h new file mode 100644 index 0000000..fdf0c52 --- /dev/null +++ b/buf.h @@ -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 |