summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_isalpha.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_isalpha.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_isalpha.c')
-rw-r--r--libft/src/ft_isalpha.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/libft/src/ft_isalpha.c b/libft/src/ft_isalpha.c
index 562825d..3b7a88f 100644
--- a/libft/src/ft_isalpha.c
+++ b/libft/src/ft_isalpha.c
@@ -10,26 +10,28 @@
/* */
/* ************************************************************************** */
-static int
+#include <libft.h>
+
+t_bool
ft_isupper(int c)
{
if (c >= 65 && c <= 90)
- return (1);
- return (0);
+ return (TRUE);
+ return (FALSE);
}
-static int
+t_bool
ft_islower(int c)
{
if (c >= 97 && c <= 122)
- return (1);
- return (0);
+ return (TRUE);
+ return (FALSE);
}
-int
+t_bool
ft_isalpha(int c)
{
if (ft_isupper(c) || ft_islower(c))
- return (1);
- return (0);
+ return (TRUE);
+ return (FALSE);
}