diff --git a/ft_isalpha.c b/ft_isalpha.c index b94b2c5..111bdc2 100644 --- a/ft_isalpha.c +++ b/ft_isalpha.c @@ -2,7 +2,6 @@ int ft_isalpha(const char c) { - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) - return (1); - return (0); + return ((c >= 'a' && c <= 'z') + || (c >= 'A' && c <= 'Z')); } diff --git a/ft_isdigit.c b/ft_isdigit.c index e74b707..97c00f3 100644 --- a/ft_isdigit.c +++ b/ft_isdigit.c @@ -2,7 +2,5 @@ int ft_isdigit(int c) { - if ((c >= '0' && c <= '9')) - return (1); - return (0); + return ((c >= '0' && c <= '9')); }