Оновити 'cv4/list-ops/list_ops.c'
This commit is contained in:
parent
742434b7e8
commit
9768c06787
@ -1,8 +1,10 @@
|
||||
#include "list_ops.h"
|
||||
|
||||
list_t *new_list(size_t length, list_element_t elements[]){
|
||||
return NULL;
|
||||
|
||||
list_t* list = (list_t*)malloc(sizeof(list_t) + length * sizeof(list_element_t));
|
||||
list->length = length;
|
||||
memcpy(list->elements,elements, length*sizeof(list_element_t));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
list_t *append_list(list_t *list1, list_t *list2){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user