#include <stdio.h>
char *ft_strlowcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] >= 'A' && str[i] <= 'Z')
{
str[i] = str[i] - ('A' - 'a');
}
i++;
}
return (str);
}
int main(void)
{
char str[] = "SaluT!";
ft_strlowcase(str);
printf ("%s \n", str);
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: