PAS PAR LES FESSESESESESESESESESE
This commit is contained in:
parent
5948237aad
commit
d5eb265a3f
@ -6,7 +6,7 @@
|
|||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */
|
/* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */
|
||||||
/* Updated: 2023/02/28 14:24:47 by erey-bet ### ########.fr */
|
/* Updated: 2023/02/28 14:28:18 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ int ft_exit(char **args, int fd)
|
|||||||
|
|
||||||
if (args[0] == NULL)
|
if (args[0] == NULL)
|
||||||
return (0);
|
return (0);
|
||||||
err = ft_atoi_check;
|
err = ft_atoi_check(args[0]);
|
||||||
if (err == 1)
|
if (err == 1)
|
||||||
return (error(err, "numeric argument required", args[0], fd));
|
return (error(err, "numeric argument required", args[0], fd));
|
||||||
if (args[1] != NULL)
|
if (args[1] != NULL)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
/* Created: 2023/02/14 14:27:08 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/02/28 13:30:32 by erey-bet ### ########.fr */
|
/* Updated: 2023/02/28 14:27:46 by erey-bet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -62,6 +62,7 @@ int add_export(t_list **env, char *args, int fd, int *err)
|
|||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
create_value_by_key_dup(key, value, env);
|
create_value_by_key_dup(key, value, env);
|
||||||
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int export(t_list **env, char **args, int fd)
|
int export(t_list **env, char **args, int fd)
|
||||||
|
Loading…
Reference in New Issue
Block a user