Add string buffer macro and tests for Str8
This commit is contained in:
@@ -14,6 +14,8 @@ struct str8 {
|
||||
u8 *buf;
|
||||
};
|
||||
|
||||
#define wapp_str8_buf(CAPACITY) ((Str8){.capacity = CAPACITY, .size = 0, .buf = (u8[CAPACITY]){0}})
|
||||
|
||||
Str8 wapp_str8_lit(char *str);
|
||||
char wapp_str8_get(const Str8 *str, u64 index);
|
||||
void wapp_str8_set(Str8 *str, u64 index, char c);
|
||||
|
Reference in New Issue
Block a user