Hey Kleid-0
I tried what you suggested and generate an error .
The code i have is
Code:
while(check_reg==1)
{
// Validate Reg
if (!isalpha(record_id[0]) || !isdigit(record_id[1]) || !isdigit (record_id[2]) || !isdigit(record_id[3]))
{
printf("Bad format, bad!\n");
printf("Please enter an Reg No eg: w123 \n");
scanf("%s",&record_id);
fflush(stdin);
check_reg = 1;
}
check_reg= 0;
}
The error says:
"Invalid indirection in function"
It errors out on this line:
Code:
if (!isalpha(record_id[0]) || !isdigit(record_id[1]) || !isdigit (record_id[2]) || !isdigit(record_id[3]))
Any thoughts are welcome.
Thanks again
C