-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprint_map.c
32 lines (29 loc) · 1.09 KB
/
print_map.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
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_map.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ndelmatt <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/10 17:37:37 by ndelmatt #+# #+# */
/* Updated: 2016/01/11 17:25:17 by ndelmatt ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
void print_map(t_map *map)
{
int x;
int y;
y = 0;
while (y < map->minsquare)
{
x = 0;
while (x < map->minsquare)
{
ft_putchar(map->field[y][x]);
x++;
}
y++;
ft_putchar('\n');
}
}