First commit, few files added

This commit is contained in:
Manzovince
2019-04-12 22:01:24 +02:00
parent d54cce63cc
commit ae309ef6aa
7 changed files with 209 additions and 1 deletions

31
srcs/print_fillit.c Normal file
View File

@@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_fillit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vmanzoni <vmanzoni@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/01 13:35:48 by vmanzoni #+# #+# */
/* Updated: 2019/03/01 13:37:45 by vmanzoni ### ########.fr */
/* */
/* ************************************************************************** */
void ft_print_fillit(short tetri_nb, char tetri[tetri_nb][16])
{
short count;
short i;
count = 0;
while (count < tetri_nb)
{
i = 0;
while (i < 16)
{
write(1, &tetri[count][i], 1);
if (i++ % 4 == 3)
write(1, "\n", 1);
}
write(1, "\n", 1);
++count;
}
}