Hello all

Im having a bit of a problem with ascii character input, i need the program to be able check the ascii values of characters, as it must only be able to accept characters with ascii values between 32 and 126 (printable characters). Its a 2 dimensional array to fill up, inarray[MAXINDEX][MAXCHARS], where MAXINDEX=6 and MAXCHARS=128

Code:
int getmessage()
{
    int Count=0;
    char *rc;
    int MINASCII=31;
    int MAXASCII=127;
    /*
    * want to check the ASCII values of chars input, but
    * program thinks the input values have to be integers
    * between 31 and 127
    */

	printf("Please enter the Message.\nThe message can have up to 6 lines\n");

/* this accepts first line of input */
	while( Count < MAXINDEX && (rc = fgets( inarray[Count], MAXCHARS, stdin)) && *rc != '\n' )  

/*this is supposed to be the check to see if the inputted
*characters have ascii values 32-126
*/
                 if ( fgets > MAXASCII || fgets < MINASCII)
                         printf("Invalid Input, please enter ascii character from 32-126\n");
                 else
                Count++;  /* this starts filling the second dimension of the array */

  return 0;
}