#include <stdio.h>
char *ft_strupcase(char *str) {
char *ptr = str;
while (*str) {
*str -= 32;
str++;
}
return ptr;
}
int main() {
char chaine[] = "bonjour";
printf("%s\n", chaine);
char *resultat = ft_strupcase(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: