diff --git a/.env.c.swo b/.env.c.swo new file mode 100644 index 0000000..7b3c45d Binary files /dev/null and b/.env.c.swo differ diff --git a/env.c b/env.c index b0c1342..b7a4577 100644 --- a/env.c +++ b/env.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/02 14:39:56 by erey-bet #+# #+# */ -/* Updated: 2023/02/02 17:39:56 by erey-bet ### ########.fr */ +/* Updated: 2023/02/02 18:25:51 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,7 @@ void print_export(t_list **head, int fd) if (*(ft_strchr(ctn, '=') - 1) != '_') { write(fd, "declare -x ", 11); - ft_putstr_fd(ctn, fd); + ft_putstr_fd(fd, ctn); write(fd, "\n", 1); } current = current->next; @@ -39,7 +39,7 @@ void print_env(t_list **head, int fd) current = *head; while (current != NULL) { - ft_putstr_fd(current->content, fd); + ft_putstr_fd(fd, current->content); write(fd, "\n", 1); current = current->next; } diff --git a/env.o b/env.o new file mode 100644 index 0000000..26d8a69 Binary files /dev/null and b/env.o differ