From 4b2f671107567883ac1c8b48a0da186167becb86 Mon Sep 17 00:00:00 2001 From: Theo Champion Date: Tue, 22 Jul 2025 12:12:07 +0200 Subject: [PATCH] norm: fixed all the norme issues in the perform_color_checks() function --- src/map/setters.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/map/setters.c b/src/map/setters.c index d2c2ca0..42fe732 100644 --- a/src/map/setters.c +++ b/src/map/setters.c @@ -6,7 +6,7 @@ /* By: kcolin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/06/21 19:35:43 by tchampio #+# #+# */ -/* Updated: 2025/07/21 15:28:36 by kcolin ### ########.fr */ +/* Updated: 2025/07/22 12:11:28 by tchampio ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,14 +16,15 @@ bool perform_color_checks(int *color, char *strcolor, t_mapdata *map) { size_t i; - int colorvalue; + int colorvalue; i = 0; while (i < ft_strlen(strcolor) - 1) { if (!ft_isdigit(strcolor[i])) { - ft_strlcpy(map->error, "invalid characters in color definition", 1024); + ft_strlcpy(map->error, "invalid characters in color definition", + 1024); return (false); } i++; @@ -37,7 +38,7 @@ bool perform_color_checks(int *color, char *strcolor, t_mapdata *map) *color = colorvalue; return (true); } - + unsigned long set_color(const char *s, t_mapdata *map) { int i;