mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 01:34:15 +00:00
feat: return directly the statement
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
@@ -2,7 +2,5 @@
|
||||
|
||||
int ft_isdigit(int c)
|
||||
{
|
||||
if ((c >= '0' && c <= '9'))
|
||||
return (1);
|
||||
return (0);
|
||||
return ((c >= '0' && c <= '9'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user