summaryrefslogtreecommitdiff
path: root/command_handling.c
diff options
context:
space:
mode:
authorDominik Kaiser2024-04-16 13:16:20 +0200
committerDominik Kaiser2024-04-16 13:16:20 +0200
commit321cd3e03788cb1f077268d84f8c0c064fadb2ae (patch)
tree85de17c1a839fbd7bf31bfdc13cbb1b17cffb072 /command_handling.c
parent711092a83e3ee80e7a9d6d826b4158f799fcb358 (diff)
downloadpush_swap-321cd3e03788cb1f077268d84f8c0c064fadb2ae.tar.gz
push_swap-321cd3e03788cb1f077268d84f8c0c064fadb2ae.zip
Add some optimization
Diffstat (limited to 'command_handling.c')
-rw-r--r--command_handling.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/command_handling.c b/command_handling.c
index 0b5f335..4f7c795 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/16 09:27:41 by dkaiser ### ########.fr */
+/* Updated: 2024/04/16 12:12:48 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
+#include "libft/libft.h"
#include "push_swap.h"
static int add_cmd_to_queue(t_list **cmds, enum e_pscmd cmd)
@@ -92,6 +93,8 @@ static void print_cmd(void *ptr_cmd)
ft_putendl_fd("rrb", 1);
else if (cmd == RRR)
ft_putendl_fd("rrr", 1);
+ else
+ ft_putendl_fd("NO CMD", 1);
}
void print_commands(t_list *cmds)