i've got a program that will ask for a person initials and only in capital letters...
and if you were to give a lower case then the program will end
here is the program
Code:
#include <stdlib.h>
#include <ctype.h>

int main(int argc, char ** argv)
{
// Mainline Variable Declarations
FILE * output = stdout;
FILE * input = stdin;

char FName;
char toupper;

	//Enter first name
	fprintf(output,"--------------------------\n"); fflush(output);
	fprintf(output,"Enter Your first initial name in capital letters: "); fflush(output);

	//input first name
	fscanf(input,"%c",&FName);fflush(output);

	if(!(FName == toupper))
	{
		fprintf(output,"Error\n",FName);
		//Exit Program if its not M/F/-
		exit(0);
	}
but the problem is if i put lower or upper case it will end program anyway...
please help...thxxx