Logo Search packages:      
Sourcecode: jclassinfo version File versions  Download package

void string_list_free ( StringList *  list  ) 

free_string_list : the list to free

Frees the given list.

Definition at line 64 of file string_list.c.

{
      struct string_node* node;
      struct string_node* next_node;
      
      node = list->head;
      while(node != NULL) {
            next_node = node->next;
                  
            if(node->string != NULL)
                  free(node->string);
                        
            free(node);       
            node = next_node;
      }
      free(list);
      return;
}


Generated by  Doxygen 1.6.0   Back to index