summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_ischarset.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-17 17:22:24 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-17 17:22:24 +0200
commitcfaf9947227065ce40661544dff9b3554ff5aca2 (patch)
treee0d5da338e8df09c71c47405f5558cb67aac1cf8 /libft/src/ft_ischarset.c
parentUpdated TODO list (diff)
download42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.gz
42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.bz2
42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.xz
42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.tar.zst
42-minishell-cfaf9947227065ce40661544dff9b3554ff5aca2.zip
Set libft/ft_is* to type t_bool
Diffstat (limited to 'libft/src/ft_ischarset.c')
-rw-r--r--libft/src/ft_ischarset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libft/src/ft_ischarset.c b/libft/src/ft_ischarset.c
index 95b9172..eb57d87 100644
--- a/libft/src/ft_ischarset.c
+++ b/libft/src/ft_ischarset.c
@@ -14,7 +14,7 @@
#include <stddef.h>
#include <inttypes.h>
-uint8_t
+t_bool
ft_ischarset(const char *charset, int c)
{
size_t i;
@@ -23,8 +23,8 @@ uint8_t
while (charset[i])
{
if (charset[i] == c)
- return (1);
+ return (TRUE);
i++;
}
- return (0);
+ return (FALSE);
}