A03/match_braces.c
// Delete (e.g. free) all nodes in the given stack
// Para top: the top node of the stack (NULL if empty)
Delete  all nodes in the given stack
Para top: the top node of the stack (NULL if empty)
Delete all nodes in the given stack Para top : the top node of the stack ( NULL if empty )
void clear(struct node* top) {
	struct node* current = top;
	struct node* delete = top;
	while (current != NULL) {
		current = current->next;
		free(delete);
		delete = current;
	}
}
void clear ( struct node * top ) { struct node * current = top ; struct node * delete = top ; while ( current != NULL ) { current = current -> next ; free ( delete ) ; delete = current ; } }
Delete (e.g.
Delete ( e . g .