gitignore + srcs modifs

This commit is contained in:
Manzovince
2019-04-14 14:29:27 +02:00
parent b4c1857d88
commit bcfc8c9547
4 changed files with 17 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:29:05 by vmanzoni #+# #+# */
/* Updated: 2019/04/14 14:16:01 by vmanzoni ### ########.fr */
/* Updated: 2019/04/14 14:25:44 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -38,8 +38,8 @@ int ft_file_errors(char *file)
if (*file == '\n')
line_nbr++;
file++;
if (*file == '\n')
return (1);
//if (*file == '\n')
//return (1);
}
if (line_nbr < 4 || line_nbr > 129)
return (1);

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/12 13:20:48 by vmanzoni #+# #+# */
/* Updated: 2019/04/14 14:17:22 by vmanzoni ### ########.fr */
/* Updated: 2019/04/14 14:27:31 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -29,9 +29,9 @@ int main(int argc, char **argv)
Transform tetriminos with letters
Print result
*/
print_test(input);
}
else
ft_display_error("Error: Please submit a file.\n", 2);
return (0);
print_test(input);
}

View File

@@ -6,7 +6,7 @@
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:35:48 by vmanzoni #+# #+# */
/* Updated: 2019/04/14 12:13:16 by vmanzoni ### ########.fr */
/* Updated: 2019/04/14 14:27:47 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
@@ -22,4 +22,5 @@ void ft_print_fillit()
void print_test(char *test)
{
write(1, test, strlen(test));
write(1, "\n", 1);
}