int getPos_LList(LList* myList) - AmiralBl3ndic/CLib_v2 GitHub Wiki
int getPos_LList(LList* myList)
This function returns the subscript (index) of the given element (node) in the linked list
Parameters:
- LList* myList: pointer on the element (node) of the linked list
Return values:
Subscript (index) of the given element (node) in the linked list
Example:
LList* myList = init_LList(8);
getPos_LList(myList); //Returns 0
next_LList(myList);
getPos_LList(myList); //Returns 1