#include <stdio.h>
char *ft_strupcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] >= 'a' && str[i] <= 'z')
{
str[i] = str[i] - 32;
}
i++;
}
return (str);
}
int main(void)
{
char str[] = "SaluT!";
ft_strupcase(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: