1999-05-10 23:12:29 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-05-26 00:15:34 +08:00
|
|
|
char *
|
|
|
|
strtoupper(char *string)
|
1999-05-10 23:12:29 +08:00
|
|
|
{
|
1999-05-26 00:15:34 +08:00
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < strlen(string); i++)
|
2000-12-04 04:45:40 +08:00
|
|
|
string[i] = toupper((unsigned char) string[i]);
|
1999-05-26 00:15:34 +08:00
|
|
|
return string;
|
1999-05-10 23:12:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-05-26 00:15:34 +08:00
|
|
|
void
|
|
|
|
main(char argc, char **argv)
|
1999-05-10 23:12:29 +08:00
|
|
|
{
|
1999-05-26 00:15:34 +08:00
|
|
|
char str[250];
|
|
|
|
int sw = 0;
|
|
|
|
|
|
|
|
while (fgets(str, 240, stdin))
|
|
|
|
{
|
|
|
|
if (sw == 0)
|
|
|
|
printf("%s", strtoupper(str));
|
|
|
|
}
|
1999-05-10 23:12:29 +08:00
|
|
|
|
|
|
|
}
|