diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 19:00:27 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 19:00:27 +0200 |
commit | 4e16203d49405cc0eb81d82693e8606e80d004fd (patch) | |
tree | f93958b7aa1add68c2e754b8445263a42b9471e9 /libft/src/ft_ischarset.c | |
parent | Some updates (diff) | |
download | 42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.gz 42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.bz2 42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.xz 42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.tar.zst 42-minishell-4e16203d49405cc0eb81d82693e8606e80d004fd.zip |
Some norm
Diffstat (limited to 'libft/src/ft_ischarset.c')
-rw-r--r-- | libft/src/ft_ischarset.c | 7 |
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); |