diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 15:36:49 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 15:36:49 +0100 |
commit | e40442466e3f20f83a2d7755a6038bc3fc27fa8e (patch) | |
tree | 911145a592ac03a4dcdf9763f5708bec90a92382 /src | |
parent | Map update (diff) | |
download | 42-cub3d-e40442466e3f20f83a2d7755a6038bc3fc27fa8e.tar.gz 42-cub3d-e40442466e3f20f83a2d7755a6038bc3fc27fa8e.tar.bz2 42-cub3d-e40442466e3f20f83a2d7755a6038bc3fc27fa8e.tar.xz 42-cub3d-e40442466e3f20f83a2d7755a6038bc3fc27fa8e.tar.zst 42-cub3d-e40442466e3f20f83a2d7755a6038bc3fc27fa8e.zip |
Norme
Diffstat (limited to '')
-rw-r--r-- | src/ft_check_ext.c | 12 | ||||
-rw-r--r-- | src/ft_check_map_line.c | 6 | ||||
-rw-r--r-- | src/ft_get_colors.c | 5 | ||||
-rw-r--r-- | src/ft_parse_map.c | 2 |
4 files changed, 18 insertions, 7 deletions
diff --git a/src/ft_check_ext.c b/src/ft_check_ext.c index f4a1e92..9a953d0 100644 --- a/src/ft_check_ext.c +++ b/src/ft_check_ext.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_check_ext.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/17 15:33:28 by rbousset #+# #+# */ +/* Updated: 2020/02/17 15:33:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + #include <libft.h> #include <stdint.h> diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index b41d052..7ab2731 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -21,7 +21,7 @@ static int8_t if (!ft_ischarset("012NSEW ", line[i])) { ft_strlcpy(clist->errmsg, FT_ERR_ILL_MAP, - ft_strlen(FT_ERR_ILL_MAP) + 1); + ft_strlen(FT_ERR_ILL_MAP) + 1); return (-1); } if (ft_ischarset("NSEW", line[i])) @@ -29,7 +29,7 @@ static int8_t if (clist->mlist->isspawn > 1) { ft_strlcpy(clist->errmsg, FT_ERR_MULT_SPAWN, - ft_strlen(FT_ERR_MULT_SPAWN) + 1); + ft_strlen(FT_ERR_MULT_SPAWN) + 1); return (-1); } return (0); @@ -41,7 +41,7 @@ static int8_t if (!ft_ischarset("1 ", line[i])) { ft_strlcpy(clist->errmsg, FT_ERR_ILL_MAP, - ft_strlen(FT_ERR_ILL_MAP) + 1); + ft_strlen(FT_ERR_ILL_MAP) + 1); return (-1); } return (0); diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 3d34284..f54fabc 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -16,7 +16,7 @@ #include <stdint.h> static int8_t -ft_check_color_digits(char **num, t_cub *clist) + ft_check_color_digits(char **num, t_cub *clist) { size_t i; uint8_t j; @@ -31,8 +31,7 @@ ft_check_color_digits(char **num, t_cub *clist) { ft_free_words(num); ft_strlcpy(clist->errmsg, FT_ERR_COLOR_ALPHA, - ft_strlen(FT_ERR_COLOR_ALPHA) + 1); - + ft_strlen(FT_ERR_COLOR_ALPHA) + 1); return (-1); } i = 0; diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index c4aa011..4fd870b 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -38,7 +38,7 @@ static void } static int8_t -ft_error_here(const char *errmsg, char *line, t_cub *clist) + ft_error_here(const char *errmsg, char *line, t_cub *clist) { ft_memdel((void**)&line); return (ft_map_error(errmsg, clist)); |