added cstring mostly

This commit is contained in:
2025-02-18 23:03:07 -08:00
parent a77df22ffe
commit a942782e47

View File

@@ -131,6 +131,10 @@ tart_byte tart_add_cells_to_buffer(struct tart_buffer* buffer, struct tart_cell*
struct tart_cstring tart_cstring(char *string, long size, struct tart_cell type){
struct tart_cstring str = {0,size};
str.data = malloc(size * sizeof(struct tart_cell));
for(int i = 0; i < size; i++) {
str.data[i] = type;
str.data[i].display = string[i];
}
return str;
}