aboutsummaryrefslogtreecommitdiff
path: root/contrib/spi/preprocessor/step1.c
blob: 9d59c47edd883706e12fc851e1c39f8e44200d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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));
   }

}