mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 06:58:47 +02:00
「🔨」 fix: if folder crash
This commit is contained in:
33
src/builtins/ft_exit.c
Normal file
33
src/builtins/ft_exit.c
Normal 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++;
|
||||
// }
|
||||
|
||||
}
|
Reference in New Issue
Block a user