diff options
Diffstat (limited to 'src/ctype/ft_isalpha.c')
| -rw-r--r-- | src/ctype/ft_isalpha.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ctype/ft_isalpha.c b/src/ctype/ft_isalpha.c new file mode 100644 index 0000000..6f155b4 --- /dev/null +++ b/src/ctype/ft_isalpha.c @@ -0,0 +1,16 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_isalpha.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/07 09:54:52 by cacharle #+# #+# */ +/* Updated: 2019/10/20 13:01:13 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +int ft_isalpha(int c) +{ + return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')); +} |
