summaryrefslogtreecommitdiff
path: root/command_handling.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-04-13 14:45:30 +0200
committerDominik Kaiser2024-04-13 14:45:30 +0200
commit2cef393801e18d68c762e293b5cef1194f77e078 (patch)
treeea89ee54a54285a31d84ad1fefb15d0c5e4a8dfd /command_handling.c
parent33cbe45795557da6a1cb8921c03bc5213e15b005 (diff)
downloadpush_swap-2cef393801e18d68c762e293b5cef1194f77e078.tar.gz
push_swap-2cef393801e18d68c762e293b5cef1194f77e078.zip
Add command list printing
Diffstat (limited to 'command_handling.c')
-rw-r--r--command_handling.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/command_handling.c b/command_handling.c
index 0fffb1e..e25f47c 100644
--- a/command_handling.c
+++ b/command_handling.c
@@ -6,10 +6,11 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/13 14:38:47 by dkaiser #+# #+# */
-/* Updated: 2024/04/13 14:39:09 by dkaiser ### ########.fr */
+/* Updated: 2024/04/13 14:43:45 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
+#include "libft/libft.h"
#include "push_swap.h"
static int add_cmd_to_queue(t_list **cmds, enum e_pscmd cmd)
@@ -96,4 +97,5 @@ static void print_cmd(void *ptr_cmd)
void print_commands(t_list *cmds)
{
+ ft_lstiter(cmds, print_cmd);
}