src/linkedList.c
/**
 * Removes all values from list
 * @param l a pointer to a linked list to remove values from
 * @param freeValues a bool for whether or not to free list value pointers from memory
 **/
Removes all values from list
@param l a pointer to a linked list to remove values from
@param freeValues a bool for whether or not to free list value pointers from memory
Removes all values from list @param l a pointer to a linked list to remove values from @param freeValues a bool for whether or not to free list value pointers from memory
void clearList(linkedList* l, bool freeValues) {
    if (freeValues) {
        iterateListNodes(l, freeNodeAndValue);
    } else {
        iterateListNodes(l, freeNode);
    }
    l->head = NULL;
    l->tail = NULL;
    l->_size = 0;
}
void clearList ( linkedList * l , bool freeValues ) { if ( freeValues ) { iterateListNodes ( l , freeNodeAndValue ) ; } else { iterateListNodes ( l , freeNode ) ; } l -> head = NULL ; l -> tail = NULL ; l -> _size = 0 ; }
Removes all values from list
 @param l a pointer to a linked list to remove values from
 @param freeValues a bool for whether or not to free list value pointers from memory
Removes all values from list @param l a pointer to a linked list to remove values from @param freeValues a bool for whether or not to free list value pointers from memory