diff --git a/.outfile.c.swp b/.outfile.c.swp new file mode 100644 index 0000000..9ab161d Binary files /dev/null and b/.outfile.c.swp differ diff --git a/infile.c b/infile.c index 74af6c7..af37ead 100644 --- a/infile.c +++ b/infile.c @@ -6,7 +6,7 @@ /* By: cchauvet ') { - ft_strshift(line + y, -1 * (ft_strlen(tab[i]) + 1)); - i++; - ft_strshift(line + y, -1 * (ft_strlen(tab[i]) + 1)); + ft_strshift(line + y, -1 * (ft_strlen(tab[i]) + ft_strlen(tab[i + 1]) + 2)); } else + { + if (y != 0) + y++; y = y + ft_strlen(tab[i]); + } i++; } ft_freer_tab_ultimate(1, tab); diff --git a/t b/t new file mode 100644 index 0000000..9b47f86 --- /dev/null +++ b/t @@ -0,0 +1 @@ +bozo