#include <ctype.h>
#include <stdio.h>
void str_toupper(char str[])
{
unsigned i = 0;
while (str[i]){
str[i] = toupper(str[i]);
i++;
}
}
int main(void)
{
char str[100];
printf("文字列を入力してください:");
scanf("%s", str);
str_toupper(str);
printf("大文字:%s\n", str);
return (0);
}
I2luY2x1ZGUgPGN0eXBlLmg+CiNpbmNsdWRlIDxzdGRpby5oPgoKdm9pZCBzdHJfdG91cHBlcihjaGFyICBzdHJbXSkKewogIHVuc2lnbmVkICBpID0gMDsKICB3aGlsZSAoc3RyW2ldKXsKICAgIHN0cltpXSA9IHRvdXBwZXIoc3RyW2ldKTsKICAgIGkrKzsKICB9Cn0KaW50ICBtYWluKHZvaWQpCnsKICBjaGFyICBzdHJbMTAwXTsKCiAgcHJpbnRmKCLmloflrZfliJfjgpLlhaXlipvjgZfjgabjgY/jgaDjgZXjgYTvvJoiKTsKICBzY2FuZigiJXMiLCBzdHIpOwoKICBzdHJfdG91cHBlcihzdHIpOwogIHByaW50Zigi5aSn5paH5a2X77yaJXNcbiIsIHN0cik7CgoKICByZXR1cm4gKDApOwp9Cg==