#include <stdio.h>
int ft_str_is_uppercase(char *str) {
while (*str) {
if (*str < 'A' || *str > 'Z') {
return 0;
}
str++;
}
return 1;
}
int main() {
char str1[] = "ABC";
char str2[] = "ABc";
printf("%d\n", ft_str_is_uppercase(str1));
printf("%d\n", ft_str_is_uppercase(str2));
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: