#include "minishell.h" // pour imprimer une char ** en precisant comment separer les char * void print_matrix(char **matrix, char *sep) { int i; i = 0; while (matrix[i]) { printf("%s", matrix[i]); if (matrix[i + 1]) printf("%s", sep); //fflush(stdout); i++; } write(1, "\n", 1); } void print_pipeline(t_cmd **pipeline) { int i; i = 0; while (pipeline[i]) { printf("CMD %i, fd_in=%i, fd_out=%i\n", i, pipeline[i]->fd_in, pipeline[i]->fd_out); ft_putstr_fd(" |", 1); print_matrix(pipeline[i]->argv, "|\n |"); i++; if (pipeline[i]) ft_putstr_fd("----------------\n", 1); } }