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