if (option == 'y' && option == 'Y')
It cannot be equal to both values. It should be:
if (option == 'y' || option == 'Y')
[edit]
As is often the case this is caused by
scanf
. Add the following function:
char getOption()
{
char option[8];
fgets(option, sizeof option, stdin);
return option[0];
}
And then replace your scanf calls with:
option = getOption();
[/edit]