I feel really stupid by asking such question
I have the following code
char choice;
while( ( choice = MenuChoice() ) != 'QUIT' )
{
PrintMenu();
{
switch (choice)
{
case STRING:
case 's':
checkInput(strings);
break;
case QUIT:
break:
default:
break:
}
}
}
char MenuChoice(void)
{
char menuchoice;
printf("please enter:");
scanf("%c",&menuchoice;
scanf("%c", &newLine);
return menuchoice;
}