Code:
scanf("%c", &response);
/*NAME toupper, tolower - convert letter to upper or lower case
SYNOPSIS
#include <ctype.h>
int toupper(int c);
int tolower(int c);
DESCRIPTION
toupper() converts the letter c to upper case, if possible.
tolower() converts the letter c to lower case, if possible.
If c is not an unsigned char value, or EOF, the behaviour
of these functions is undefined.
RETURN VALUE
The value returned is that of the converted letter, or c
if the conversion was not possible.
*/
responce = toupper(response);
switch (response) {
case 'Y':
//case 'y': now it can be removed
printf("Good job you crazy bastard.\n");
break;
case 'N':
//case 'n': now it can be removed
printf("You flying asshat, get the hell out of here.\n");
return -1;
break;
default:
printf("Come on give me a Y or an N.\n");
/*while statement, an if statement, another scanf, what the hell do I do*/
}
return 0;
}