wip (ça compile pas)

This commit is contained in:
2024-04-02 12:32:18 +02:00
parent 68469542ff
commit 5580852791
14 changed files with 155 additions and 184 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/07 15:30:37 by tomoron #+# #+# */
/* Updated: 2024/03/28 13:21:05 by tomoron ### ########.fr */
/* Updated: 2024/04/02 00:44:56 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,17 +18,12 @@ void put_args(t_token *args)
int first;
first = 1;
while (args && args->type == ARG)
while (args)
{
if (args->type != ARG)
args = args->next;
else
{
if (!first)
ft_putchar_fd(' ', STDOUT_FILENO);
ft_putstr_fd(args->value, STDOUT_FILENO);
first = 0;
}
if (!first)
ft_putchar_fd(' ', STDOUT_FILENO);
ft_putstr_fd(args->value, STDOUT_FILENO);
first = 0;
args = args->next;
}
}