This commit is contained in:
Camille Chauvet
2023-05-17 16:45:25 +00:00
commit 29ed24d567
619 changed files with 16119 additions and 0 deletions

View File

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_alpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thellego <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/17 09:49:06 by thellego #+# #+# */
/* Updated: 2022/07/17 19:21:41 by thellego ### ########.fr */
/* */
/* ************************************************************************** */
int ft_str_is_alpha(char *str)
{
int counter;
counter = 0;
while (str[counter])
{
if ((65 <= str[counter] && str[counter] <= 90)
|| (97 <= str[counter] && str[counter] <= 122))
{
counter++;
}
else
{
return (0);
}
}
return (1);
}