struct linkedList *createLinkedList() { struct linkedList *newList = malloc(sizeof(struct linkedList)); //create a new list _initList(newList); //initialize the list return(newList); }
struct linkedList *createLinkedList() { struct linkedList *newList = malloc(sizeof(struct linkedList)); _initList(newList); return(newList); }
linkedList * createLinkedList() { linkedList *newList = malloc(sizeof(linkedList)); assert(newList); _initList(newList); return(newList); }