diff options
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_isalpha.c | 17 |
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); } |