summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_ischarset.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_ischarset.c')
-rw-r--r--libft/src/ft_ischarset.c7
1 files changed, 4 insertions, 3 deletions
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 <stddef.h>
#include <inttypes.h>
-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);