list.cc
/* Free all the nodes of the list HEAD.  */
Free all the nodes of the list HEAD.
Free all the nodes of the list HEAD .
static void
dispose (node **head)
{
  while (*head)
    {
      node *cur = *head;
      *head = (*head)->next;
      delete cur;
    }
}
static void dispose ( node * * head ) { while ( * head ) { node * cur = * head ; * head = ( * head ) -> next ; delete cur ; } }
Free all the nodes of the list HEAD.
Free all the nodes of the list HEAD .