/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* export.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet content, '=') + 1; key = ft_strndup(current->content, ft_strlen(current->content) - ft_strlen(value)); if (key == NULL) { ft_lstclear(env_lst, env_del); return (1); } ft_printf("declare -x %s=\"%s\"\n", key, value); free(key); current = current->next; } ft_lstclear(env_lst, env_del); return (0); }