src/list.c
/*
 * Delete a chain of linked nodes
 */
Delete a chain of linked nodes
Delete a chain of linked nodes
static void free_linked_nodes (golle_list_node_t *head) {
  while (head) {
    golle_list_node_t *next = head->next;
    free (head);
    head = next;
  }
}
static void free_linked_nodes ( golle_list_node_t * head ) { while ( head ) { golle_list_node_t * next = head -> next ; free ( head ) ; head = next ; } }
Delete a chain of linked nodes
Delete a chain of linked nodes