mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 06:34:14 +00:00
feat: add ft_isalpha function
This commit is contained in:
8
ft_isalpha.c
Normal file
8
ft_isalpha.c
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#include "libft.h"
|
||||||
|
|
||||||
|
int ft_isalpha(const char c)
|
||||||
|
{
|
||||||
|
if ((c > 65 && c < 90) || (c > 97 && c < 122))
|
||||||
|
return (1);
|
||||||
|
return (0);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user