author | Volker Birk <vb@pep.foundation> |
Tue, 27 Dec 2016 21:13:41 +0100 | |
changeset 1513 | e7f7e42385b5 |
parent 1116 | c9a03f2423c1 |
permissions | -rw-r--r-- |
1 // This file is under GNU General Public License 3.0
2 // see LICENSE.txt
4 #pragma once
6 #include <string.h>
8 typedef struct growing_buf {
9 char *data;
10 size_t size;
11 } growing_buf_t;
13 growing_buf_t *new_growing_buf(void);
14 void free_growing_buf(growing_buf_t *buf);
15 int consume_bytes(const void *src, size_t size, growing_buf_t *dst);