aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
blob: 126843cdb0e6b15e7c193d8ed2931f11aa6944fe (plain)
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
#include <libft.h>
#include <mlx.h>
#include <cub3d.h>
#include <stddef.h>
#include <stdlib.h>

t_win
*ft_init_win(void)
{
	t_win	*wlist;

	if (!(wlist = (t_win*)malloc(sizeof(t_win))))
		return (NULL);
	return (wlist);
}

t_cub
*ft_init_cub(void)
{
	t_cub	*clist;

	if (!(clist = (t_cub*)malloc(sizeof(t_cub))))
		return (NULL);
	return (clist);
}