From 4e16203d49405cc0eb81d82693e8606e80d004fd Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:00:27 +0200 Subject: Some norm --- libft/src/ft_ischarset.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_ischarset.c') diff --git a/libft/src/ft_ischarset.c b/libft/src/ft_ischarset.c index eb57d87..82d3445 100644 --- a/libft/src/ft_ischarset.c +++ b/libft/src/ft_ischarset.c @@ -14,16 +14,17 @@ #include #include -t_bool - ft_ischarset(const char *charset, int c) +t_bool ft_ischarset(const char *charset, int c) { size_t i; i = 0; - while (charset[i]) + while (charset[i] != '\0') { if (charset[i] == c) + { return (TRUE); + } i++; } return (FALSE); -- cgit v1.2.3