/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_str_is_alpha.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/08/07 10:55:19 by jhalford #+# #+# */ /* Updated: 2016/08/07 12:06:32 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ int ft_str_is_alpha(char *str) { int i; char c; i = 0; while (str[i] != '\0') { c = str[i]; if (!(c >= 'a' && c <= 'z') && !(c >= 'A' && c <= 'Z')) return (0); i++; } return (1); }