This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include "LinkedList.h" | |
/** | |
* Creates an empty linkedlist_t. head is set to NULL and length to 0. | |
*/ | |
linkedlist_t *linkedlist_init() { | |
linkedlist_t *list = malloc(sizeof(linkedlist_t)); | |
if(list == NULL) return NULL; | |
list->length = 0; |