-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_print.c
executable file
·28 lines (25 loc) · 1.06 KB
/
ft_print.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yijhuang <yijhuang@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/02 22:35:13 by yijhuang #+# #+# */
/* Updated: 2019/03/02 22:37:13 by yijhuang ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
void ft_print(char **res)
{
int x;
int y;
y = -1;
while (res[++y] != NULL)
{
x = -1;
while (res[y][++x])
write(1, &res[y][x], 1);
write(1, "\n", 1);
}
}