summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_isalpha.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:00:27 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:00:27 +0200
commit4e16203d49405cc0eb81d82693e8606e80d004fd (patch)
treef93958b7aa1add68c2e754b8445263a42b9471e9 /libft/src/ft_isalpha.c
parentSome updates (diff)
download42-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_isalpha.c')
-rw-r--r--libft/src/ft_isalpha.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/libft/src/ft_isalpha.c b/libft/src/ft_isalpha.c
index 3b7a88f..68afb69 100644
--- a/libft/src/ft_isalpha.c
+++ b/libft/src/ft_isalpha.c
@@ -12,26 +12,29 @@
#include <libft.h>
-t_bool
- ft_isupper(int c)
+t_bool ft_isupper(int c)
{
if (c >= 65 && c <= 90)
+ {
return (TRUE);
+ }
return (FALSE);
}
-t_bool
- ft_islower(int c)
+t_bool ft_islower(int c)
{
if (c >= 97 && c <= 122)
+ {
return (TRUE);
+ }
return (FALSE);
}
-t_bool
- ft_isalpha(int c)
+t_bool ft_isalpha(int c)
{
- if (ft_isupper(c) || ft_islower(c))
+ if (ft_isupper(c) == TRUE || ft_islower(c) == TRUE)
+ {
return (TRUE);
+ }
return (FALSE);
}