ca compile mtn
This commit is contained in:
parent
13d412ea71
commit
4f77dde859
BIN
.env.c.swo
Normal file
BIN
.env.c.swo
Normal file
Binary file not shown.
6
env.c
6
env.c
@ -6,7 +6,7 @@
|
|||||||
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/02 14:39:56 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) != '_')
|
if (*(ft_strchr(ctn, '=') - 1) != '_')
|
||||||
{
|
{
|
||||||
write(fd, "declare -x ", 11);
|
write(fd, "declare -x ", 11);
|
||||||
ft_putstr_fd(ctn, fd);
|
ft_putstr_fd(fd, ctn);
|
||||||
write(fd, "\n", 1);
|
write(fd, "\n", 1);
|
||||||
}
|
}
|
||||||
current = current->next;
|
current = current->next;
|
||||||
@ -39,7 +39,7 @@ void print_env(t_list **head, int fd)
|
|||||||
current = *head;
|
current = *head;
|
||||||
while (current != NULL)
|
while (current != NULL)
|
||||||
{
|
{
|
||||||
ft_putstr_fd(current->content, fd);
|
ft_putstr_fd(fd, current->content);
|
||||||
write(fd, "\n", 1);
|
write(fd, "\n", 1);
|
||||||
current = current->next;
|
current = current->next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user