ready to test

This commit is contained in:
2025-07-30 12:56:32 +01:00
parent 88fa2fa2a3
commit e87c1f74f4
6 changed files with 202 additions and 48 deletions

5
data.c
View File

@@ -99,6 +99,11 @@ char *char_array_get_until_char(char_array_t *array, char c) {
return ret;
};
void char_array_put_until_char(char *arr, char_array_t *array, char c) {
char *data = char_array_get_until_char(array, c);
memcpy(arr, data, strlen(data));
}
char *char_array_get_bytes(char_array_t *array, size_t length) {
if (length > array->size) {
return NULL;