C 库函数 int toupper(int c) 把小写字母转换为大写字母。
int toupper(int c);
#include <stdio.h>
#include <ctype.h>
int main()
{
int i = 0;
char c;
char str[] = "runoob";
while(str[i])
{
putchar (toupper(str[i]));
i++;
}
return(0);
}