diff options
Diffstat (limited to 'src/buffer.h')
-rw-r--r-- | src/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h index 35f2bdf..67e1bf7 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -1,6 +1,5 @@ #ifndef BUFFER_H #define BUFFER_H -#include <stdbool.h> #include <stddef.h> #define GROW_SIZE 10 @@ -12,7 +11,8 @@ typedef struct { } growable_buffer; bool init_growable_buffer(growable_buffer *buffer); -bool grow_growable_buffer(growable_buffer *buffer, size_t at_least); +char *grow_growable_buffer(growable_buffer *buffer, size_t at_least); +void append_growable_buffer(growable_buffer *buffer, char* content, size_t length); void free_growable_buffer(growable_buffer *buffer); |