void setValue_LList(LList* myList, const int value) - AmiralBl3ndic/CLib_v2 GitHub Wiki

void setValue_LList(LList* myList, const int value)

This function modifies the value of the active element (node) of the LList


This function was implemented to ease the use of the library


Parameters:

  • LList* myList: pointer on the active element (node) of the LList
  • const int value: value to set

Example:

LList* myList = init_LList(8);

setValue_LList(myList, 42); //Sets the value of the first element of the list to 42