Оновити 'cv4/list_ops.c'
This commit is contained in:
parent
58e3c03d6c
commit
eee4365d7b
@ -25,7 +25,6 @@ list_t *append_list(list_t *list1, list_t *list2) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
memcpy(list3->elements + list1->length, list2->elements, list2->length * sizeof(list_element_t));
|
memcpy(list3->elements + list1->length, list2->elements, list2->length * sizeof(list_element_t));
|
||||||
list3->length = list1->length + list2->length;
|
|
||||||
return list3;
|
return list3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user