int pop_LList(LList* myList) - AmiralBl3ndic/CLib_v2 GitHub Wiki
int pop_LList(LList* myList)
This function removes the last element (node) of the given linked list
Parameters:
- LList* myList: pointer on any element (node) of the linked list
Return value
Value of the last node of the linked list
Example:
LList* myList = init_LList(1); //Size = 1
int popped;
myList->val = 42;
popped = pop_LList(myList); //Size = 0,, popped = 42