29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_print.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: jvasseur <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/07/24 17:09:36 by jvasseur #+# #+# */
|
||
|
/* Updated: 2022/07/25 15:52:24 by cchauvet ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
void ft_putchar(char c);
|
||
|
|
||
|
void ft_print(int *tab)
|
||
|
{
|
||
|
int a;
|
||
|
a = 0;
|
||
|
while(a < 16)
|
||
|
{
|
||
|
ft_putchar(tab[a] + '0');
|
||
|
if ((a + 1) % 4 == 0)
|
||
|
ft_putchar('\n');
|
||
|
else
|
||
|
ft_putchar(' ');
|
||
|
a++;
|
||
|
}
|
||
|
}
|