aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_map.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 18:12:45 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 18:12:56 +0100
commit95670611b3636932b6e64c3e485a4e4bf40d8b07 (patch)
tree77a588ad4c2b9ac84bfc124f8fab37887d7d8bf8 /src/ft_get_map.c
parentNorme (diff)
download42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.gz
42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.bz2
42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.xz
42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.tar.zst
42-cub3d-95670611b3636932b6e64c3e485a4e4bf40d8b07.zip
Norme again
Diffstat (limited to '')
-rw-r--r--src/ft_get_map.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/ft_get_map.c b/src/ft_get_map.c
index adedf7c..00de520 100644
--- a/src/ft_get_map.c
+++ b/src/ft_get_map.c
@@ -1,10 +1,23 @@
+/* ************************************************************************** */
+/* LE - / */
+/* / */
+/* ft_get_map.c .:: .:/ . .:: */
+/* +:+:+ +: +: +:+:+ */
+/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
+/* #+# #+ #+ #+# */
+/* Created: 2020/02/02 17:19:26 by rbousset #+# ## ## #+# */
+/* Updated: 2020/02/02 17:19:26 by rbousset ### #+. /#+ ###.fr */
+/* / */
+/* / */
+/* ************************************************************************** */
+
#include <libft.h>
#include <cub3d.h>
#include <stddef.h>
#include <stdint.h>
static void
-ft_linecpy(char *line, char *mapl, size_t start)
+ ft_linecpy(char *line, char *mapl, size_t start)
{
size_t i;
size_t j;
@@ -25,7 +38,7 @@ ft_linecpy(char *line, char *mapl, size_t start)
}
static int8_t
-ft_cat_mapl(char *line, size_t i, t_cub *clist)
+ ft_cat_mapl(char *line, size_t i, t_cub *clist)
{
if (!(clist->mapl = (char *)ft_nrealloc(clist->mapl,
((clist->map_w + 1) * i) * sizeof(char),
@@ -36,7 +49,7 @@ ft_cat_mapl(char *line, size_t i, t_cub *clist)
}
int
-ft_get_map_first_line(char *line, t_cub *clist)
+ ft_get_map_first_line(char *line, t_cub *clist)
{
if (!line[0])
{
@@ -60,7 +73,7 @@ ft_get_map_first_line(char *line, t_cub *clist)
}
int
-ft_get_map_core(int fd, t_cub *clist)
+ ft_get_map_core(int fd, t_cub *clist)
{
int ret;
size_t i;