diff --git a/.outfile.c.swp b/.outfile.c.swp deleted file mode 100644 index 9ab161d..0000000 Binary files a/.outfile.c.swp and /dev/null differ diff --git a/main.c b/main.c index d9e673c..ccabf31 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ /* By: cchauvet # include # include -# define DEBUG 1 +# define DEBUG 0 int ft_syntatic_verif(const char *str); int ft_file_is_readable(const char *path); diff --git a/outfile.c b/outfile.c index 5b0a782..5b3e141 100644 --- a/outfile.c +++ b/outfile.c @@ -6,7 +6,7 @@ /* By: cchauvet ') { - ft_strshift(line + y, -1 * (ft_strlen(tab[i]) + ft_strlen(tab[i + 1]) + 2)); + 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]); - } + y = y + ft_strlen(tab[i]) + (y != 0); i++; } ft_freer_tab_ultimate(1, tab); diff --git a/t b/t deleted file mode 100644 index 9b47f86..0000000 --- a/t +++ /dev/null @@ -1 +0,0 @@ -bozo