diff options
author | wrmr | 2024-11-02 19:33:08 -0500 |
---|---|---|
committer | wrmr | 2024-11-02 19:33:08 -0500 |
commit | 610808a5902adad751a4acdbcc310803a51fed5d (patch) | |
tree | 76599dc60cccf6a3765f484dfa1b19e1af88efa1 /buf.h | |
parent | 58214ec5f982c1b97aadce254c958a5f922c9724 (diff) |
very different document data structure
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 |