25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_str_is_alpha.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/11/01 16:19:48 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/11/01 20:14:31 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
int ft_str_is_alpha(char *str)
|
||
|
{
|
||
|
if (!*str)
|
||
|
return (1);
|
||
|
while (*str)
|
||
|
{
|
||
|
if (!((*str >= 'A' && *str <= 'Z') || (*str >= 'a' && *str <= 'z')))
|
||
|
return (0);
|
||
|
str++;
|
||
|
}
|
||
|
return (1);
|
||
|
}
|