int remove_LList(LList* myList) - AmiralBl3ndic/CLib_v2 GitHub Wiki

int remove_LList(LList* myList)

This function removes the active element (node) from the given linked list


Parameters:

  • LList* myList: pointer on the element (node) to remove from the linked list

Return value

Value of the removed element (val property)


Example:

LList* myList = init_LList(8); //Size = 8
myList->val = 42;

remove_LList(myList); //Returns 42, Size = 7