42_C_PISCINE/Rush/Rush01/ft_print.c

29 lines
1.1 KiB
C
Raw Normal View History

2023-05-17 12:45:25 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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++;
}
}