A03/match_braces.c
// Print all nodes in the given stack (from top to bottom)
// Param top: the top node of the stack (NULL if empty)
Print all nodes in the given stack (from top to bottom)
Param top: the top node of the stack (NULL if empty)
Print all nodes in the given stack ( from top to bottom ) Param top : the top node of the stack ( NULL if empty )
void print(struct node* top) {
	struct node* placer = top;
	if (top == NULL) {
		printf("Empty stack.");
		return; 
	}
	while (placer != NULL)  {
		printf("Unmatched brace on Line %d and Column %d\n", placer->linenum, placer->colnum);
		placer = placer->next;
	}
	return;
}
void print ( struct node * top ) { struct node * placer = top ; if ( top == NULL ) { printf ( " " ) ; return ; } while ( placer != NULL ) { printf ( " \n " , placer -> linenum , placer -> colnum ) ; placer = placer -> next ; } return ; }
Print all nodes in the given stack (from top to bottom)
Param top: the top node of the stack (NULL if empty)
Print all nodes in the given stack ( from top to bottom ) Param top : the top node of the stack ( NULL if empty )