42_C_PISCINE/C/c02v3/ex05/ft_str_is_uppercase.c
Camille Chauvet 29ed24d567 init
2023-05-17 16:45:25 +00:00

23 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_uppercase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/18 10:46:58 by cchauvet #+# #+# */
/* Updated: 2022/07/18 10:47:05 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
int ft_str_is_uppercase(char *str)
{
while (*str != 0)
{
if (!('A' <= *str && *str <= 'Z'))
return (0);
str++;
}
return (1);
}