ready to test
This commit is contained in:
5
data.c
5
data.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user