Mercurial > libedl
comparison include/str.h @ 4:c2408abb258a
*: add dumping to string, rename EDL_file to EDL
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Dec 2023 16:24:16 -0500 |
parents | |
children | 0c98b46eaf73 |
comparison
equal
deleted
inserted
replaced
3:bd99b6549eb4 | 4:c2408abb258a |
---|---|
1 #ifndef __edl__internal__str_h | |
2 #define __edl__internal__str_h | |
3 | |
4 #include <stddef.h> | |
5 | |
6 typedef struct { | |
7 size_t size; | |
8 size_t capacity; | |
9 char* data; | |
10 } EDL_internal_string; | |
11 | |
12 int EDL_internal_string_init(EDL_internal_string* str); | |
13 int EDL_internal_string_allocate(EDL_internal_string* str, size_t new_capacity); | |
14 int EDL_internal_string_append(EDL_internal_string* str, const char* data, const size_t length); | |
15 void EDL_internal_string_free(EDL_internal_string* str); | |
16 | |
17 #endif // __edl__internal__str_h |