/************************************************************************/
/*                                                                      */
/*         Code generated by FED-CASE V1.0  Code Generator              */
/*                  © Joosen Software Development                       */
/*                    All rights reserved 1993                          */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                          Start of Includes                           */
/*                                                                      */
/************************************************************************/

#include <exec/types.h>
#include <data/const_vowel.h>
#include <stdio.h>

/************************************************************************/
/*                                                                      */
/*                           End of Includes                            */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                    Start of source prototype file                    */
/*                                                                      */
/************************************************************************/

#include <proto/proto_vowel.h>

/************************************************************************/
/*                                                                      */
/*                     End of source prototype file                     */
/*                                                                      */
/************************************************************************/

/************************************************************************/
/*                                                                      */
/*                 Start of global variable declaration                 */
/*                                                                      */
/************************************************************************/

int GI_a;
int GI_e;
int GI_i;
int GI_o;
int GI_u;
char GC_ch;
int GI_U;

/************************************************************************/
/*                                                                      */
/*                  End of global variable declaration                  */
/*                                                                      */
/************************************************************************/


/************************************************************************/
/* Procedure  : void main()                                             */
/* Function   :                                                         */
/* Designer   : Christian Joosen                                        */
/* Date       : Sun Nov 28 17:02:16 1993                                */
/*                                                                      */
/* Modificat  :                                                         */
/* Handler    :                                                         */
/* Modific.   :                                                         */
/*                                                                      */
/************************************************************************/

void main()
{

	GI_a= 0;
	GI_e= 0;
	GI_i= 0;
	GI_o= 0;
	GI_u= 0;
	printf( "Enter some text: enter # to quit" );		/* printf: Standard output function */
	do
	{
		switch (GC_ch  )
		{
		case 'a' :
		case 'b' :
		case 'c' :
		case 'd' :
			GI_a++;
			break;					/* case 'a'..'d' */
		case 'e' :
		case 'E' :
			GI_e++;
			break;					/* case 'e','E' */
		case 'i' :
		case 'I' :
			GI_i++;
			break;					/* case 'i','I' */
		case 'o' :
		case 'O' :
			GI_o++;
			break;					/* case 'o','O' */
		case 'u' :
		case 'U' :
			GI_U++;
			break;					/* case 'u','U' */
		}						/* end of switch(GC_ch) */
	} while( (GC_ch= getchar() ) != '#');			/* getchar: Read one character  */
	printf( "Number of vowels : A E I O U\n" );		/* printf: Standard output function */
	printf( "                   %d\n" , GI_a ) ;		/* printf: Standard output function */
	printf( "                   %d\n" , GI_e ) ;
	printf( "                   %d\n" , GI_i ) ;
	printf( "                   %d\n" , GI_o ) ;
	printf( "                   %d\n" , GI_u ) ;
}								/* end of V_main */
