From 610808a5902adad751a4acdbcc310803a51fed5d Mon Sep 17 00:00:00 2001 From: wrmr Date: Sat, 2 Nov 2024 19:33:08 -0500 Subject: very different document data structure --- buf.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 buf.h (limited to 'buf.h') 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 + +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 -- cgit 1.4.1-2-gfad0