Example #1
0
void print_list_reverse(Node* from)
{
	if(from == NULL)
		return;

	print_list_reverse(from->next);	
	printf("%d ", from->data);
}
Example #2
0
int main(){

    node *head = NULL;
    push_back(&head, 1);
    push_back(&head, 2);
    push_back(&head, 3);

    node *target = find_node_by_key(&head, 3);
    add_after(&head,&target, 10);


    print_list(&head);
    print_list_reverse(&head);
    return 0;
}