0
0
mirror of https://github.com/torje/C_crash_course.git synced 2026-01-08 08:13:47 +01:00

I did stuff. Hopefully stuff is still in order

This commit is contained in:
2016-04-15 23:26:52 +02:00
parent 23be0aa838
commit 215f0c3f60
12 changed files with 316 additions and 0 deletions

10
containers/buffer.h Normal file
View File

@@ -0,0 +1,10 @@
#include <stddef.h>
struct Buffer;
struct Buffer * Buffer_create(void);
void Buffer_clear(struct Buffer * buffer);
void Buffer_alloc_from_zero(struct Buffer * buffer, size_t size);
int Buffer_resize(struct Buffer * buffer, size_t size);
void *Buffer_at(struct Buffer *buffer, size_t pos);
size_t Buffer_size(struct Buffer *buffer);