mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
340 B
25 lines
340 B
![]()
27 years ago
|
#include <stdio.h>
|
||
|
|
||
|
char *strtoupper(char *string)
|
||
|
{
|
||
|
int i ;
|
||
|
for (i=0;i<strlen(string);i++)
|
||
|
{
|
||
|
string[i]=toupper(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));
|
||
|
}
|
||
|
|
||
|
}
|