#include <unistd.h>
int ft_str_is_alpha(char *str)
{
while (*str != '\0')
{
if ((*str >= 97 && *str <= 122) || (*str >= 65 && *str <= 90))
str++;
else
return (0);
}
return (1);
}
int main(void)
{
char str[] = "";
if (ft_str_is_alpha(str))
write(1, "1", 1);
else
write(1, "0", 1);
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: