🔨」 fix: if folder crash

This commit is contained in:
2024-07-14 15:39:28 +02:00
parent 4739d6b6f9
commit fe0285a5b2
17 changed files with 119 additions and 18 deletions

33
src/builtins/ft_exit.c Normal file
View File

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/14 13:46:57 by adjoly #+# #+# */
/* Updated: 2024/07/14 14:24:47 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_exit(char **argv, int ac)
{
char **tmp;
char *tmp_arg;
(void)tmp;
(void)tmp_arg;
(void)argv;
(void)ac;
exit(727);
// if (ac > 2)
// exit
// while (*tmp)
// {
//
// tmp++;
// }
}