void free_partialLList(LList* myList) - AmiralBl3ndic/CLib_v2 GitHub Wiki

void free_partialLList(LList* myList)

Frees a Linked List from the node given as parameter to the end of the LList


Warning

Using this function is not recommended and hazardous, it is not totally safe regarding memory freeing, better use free_LList(LList* myList)


Parameters:

  • LList* myList: pointer on the element (node) of the list from which to free

Example:

LList* list = init_LList(8);

//Some code to set the list's active element to its 3rd

//Free list so that it only remains elements 1 and 2
free_partialLList(list);
⚠️ **GitHub.com Fallback** ⚠️