added cstring mostly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user