Skip to content

Commit

Permalink
fixing usage of function that adds a new node at the end - ft_lstend_…
Browse files Browse the repository at this point in the history
…void
  • Loading branch information
biralavor committed May 20, 2024
1 parent 1335e09 commit c123b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions program_to_test/src/push_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/09 18:34:31 by umeneses #+# #+# */
/* Updated: 2024/05/17 17:54:47 by umeneses ### ########.fr */
/* Updated: 2024/05/20 10:39:28 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -33,7 +33,7 @@ int main(void)
ft_error_msg("Memory allocation failed\n");
new_node->content = add_one_ptr;
new_node->next = NULL;
ft_lstend_void(&new_node, add_two_ptr);
ft_lstend_void(new_node, add_two_ptr);
t_list *temp_node;
temp_node = new_node;
while (temp_node != NULL)
Expand Down

0 comments on commit c123b91

Please sign in to comment.