mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-27 17:07:19 +02:00
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
28 lines
333 B
C
28 lines
333 B
C
#include <stdio.h>
|
|
|
|
char *
|
|
strtoupper(char *string)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < strlen(string); i++)
|
|
string[i] = toupper((unsigned char) string[i]);
|
|
return string;
|
|
}
|
|
|
|
|
|
|
|
void
|
|
main(char argc, char **argv)
|
|
{
|
|
char str[250];
|
|
int sw = 0;
|
|
|
|
while (fgets(str, 240, stdin))
|
|
{
|
|
if (sw == 0)
|
|
printf("%s", strtoupper(str));
|
|
}
|
|
|
|
}
|