summaryrefslogtreecommitdiff
path: root/contrib/spi/preprocessor/step1.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/spi/preprocessor/step1.c')
-rw-r--r--contrib/spi/preprocessor/step1.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/spi/preprocessor/step1.c b/contrib/spi/preprocessor/step1.c
new file mode 100644
index 00000000000..9d59c47edd8
--- /dev/null
+++ b/contrib/spi/preprocessor/step1.c
@@ -0,0 +1,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));
+ }
+
+}