Could someone help me with this thing? I am trying to get an alphanumeric set of characters from the user while making sure that it is 10 characters in length. I keep getting errors saying that I " need an explicit cast for function parameter 1 to get from char ". I imagine that this has everything to do with using character constants. I can find no examples to enlighten me for what I am trying to do here. Please help.
/////////////////
char customer_chars[11];
char ch;
for(;;)
{
gets (ch);
if(strlen(ch) == 10 && isalnum(ch))
break; // leave loop to continue the program
}
//////////////