From 6a9466da5377d0bc73c7e5aa48deca3740d3de6f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 31 Mar 2019 13:44:27 +0200 Subject: Test errors, stop working on error --- src/std/buffer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/std') diff --git a/src/std/buffer.c b/src/std/buffer.c index e631153..8e23a30 100644 --- a/src/std/buffer.c +++ b/src/std/buffer.c @@ -62,6 +62,10 @@ int buffer_pop(Buffer *self, void *data, usize size) { return 0; } +void buffer_clear(Buffer *self) { + self->size = 0; +} + void* buffer_start(Buffer *self) { return self->data; } -- cgit v1.2.3