You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
291 B

#include "linkedList.h"
#include <stdlib.h>
LinkedList createLinkedList(void) {
return NULL;
}
void freeLinkedList(LinkedList *list) {
struct list_node *next;
struct list_node *node = *list;
while (node != NULL) {
next = node->next;
free(node);
node = next;
}
*list = NULL;
}