int size_LList(LList myList) - AmiralBl3ndic/CLib_v2 GitHub Wiki

int size_LList(LList myList)

This function returns the size of the linked list given as parameter


Parameters:

  • LList myList: any element (node) of the linked list

Return value:

Size (number of elements allocated) of the linked list given as parameter


Example:

LList* myList = init_LList(8);
int listSize = size_LList(*myList); //listSize = 8