Bozo3 avance
This commit is contained in:
18
builtins/unset.c
Normal file
18
builtins/unset.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* unset.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/02/22 13:28:27 by erey-bet #+# #+# */
|
||||
/* Updated: 2023/02/22 13:37:27 by erey-bet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
int unset(t_list **env, char **args, int fd)
|
||||
{
|
||||
while (args++)
|
||||
delete_by_key(*args, env);
|
||||
return (0);
|
||||
}
|
Reference in New Issue
Block a user