char *ft_strupcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if ((str[i] >= 97) && (str[i] <= 123))
{
str[i] -= 32;
}
i++;
}
return (str);
}
/*
#include <stdio.h>
int main(void)
{
char str[] = "a1b2cdAA@@34-A"; // pas oublier ;
ft_strupcase(str); // attention pas mettre de pointeur ici!!! meme si fon (char *str)
printf("ma nouvelle chaine sans minuscule est ... %s\n", str); // pas %d\n" mais %s\n"
return 0;
}*/
To embed this project on your website, copy the following code and paste it into your website's HTML: