I'm getting this Check50 error message for my Vigenere Cipher code:
rejects "Hax0r2" as keyword \ expected an exit code of 1, not a prompt for input
The task requires non-alpha keywords to be immediately rejected. How do I do this in this first block of code? The check50 checks expect the key to be iterated through then immediately rejected (as result 1:) and it's not enough just to put !isalpha for the whole argv key or this is rejected. Note: the print statement being removed or moved doesn't help. It appears it's required in the checks also.
This is the code:
int main(int argc, char* argv[])
{
if ((argc!=2) || (!isalpha(argv[1][0])))
{
printf("Please enter your single word key");
return 1;
}
Note: also the argc statements seem to be correct and are not causing the problem.