#include <stdio.h>
char *ft_strlowcase(char *str) {
char *ptr = str;
while (*str) {
*str += 32;
str++;
}
return ptr;
}
int main() {
char chaine[] = "BONJOUR";
printf("%s\n", chaine);
char *resultat = ft_strlowcase(chaine);
printf("%s", resultat);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: