void upper_string(char *str) { //strの文字列長を取得しておく int i, length = strlen(str); //toupper関数によって文字を半角大文字に変換する for(i=0; i