#include <stdio.h>

int ft_str_is_lowercase(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_lowercase(str1));
    printf("%d\n", ft_str_is_lowercase(str2));

    return 0;
}

Embed on website

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