This commit is contained in:
Dane MacFadden
2025-07-10 12:35:27 -06:00
parent dc81e4748d
commit a73aa38678
+8 -11
View File
@@ -1,21 +1,18 @@
#include <list.h>
#include <stdlib.h>
#include <stdio.h>
LIST *new_list;
LIST *ListCreate(void) {
LIST *new_node_list;
new_node_list = malloc(sizeof(LIST));
if (!new_node_list) {
new_list = malloc(sizeof(LIST));
if (!new_list) {
return NULL;
}
new_node_list->size = 0;
new_node_list->current = 0;
new_node_list->head = 0;
new_node_list->tail = 0;
new_list->size = 0;
new_list->current = 0;
new_list->head = 0;
new_list->tail = 0;
return new_node_list;
return new_list;
}
int ListAdd(LIST *list, void *item) {