#include <unistd.h>

int	ft_str_is_uppercase(char *str)
{
	int	i;

	i = 0;
	while (str[i] != '\0')
	{
		if (str[i] >= 65 && str[i] <= 90)
			i++;
		else
			return (0);
	}
	return (1);
}

int	main(void)
{
	char	str[] = "AZ";

	if (ft_str_is_uppercase(str))
		write(1, "1", 1);
	else
		write(1, "0", 1);
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: