From 4e16203d49405cc0eb81d82693e8606e80d004fd Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:00:27 +0200 Subject: Some norm --- libft/src/ft_isalpha.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'libft/src/ft_isalpha.c') 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 -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); } -- cgit v1.2.3