From 1e9b077e0d9f3c50d7d518bf6ea7f08e7f5ec590 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 15 Jan 2020 10:04:09 +0100 Subject: splited src in category, more generic makefile --- src/ctype/ft_isalpha.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/ctype/ft_isalpha.c (limited to 'src/ctype/ft_isalpha.c') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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')); +} -- cgit