[Solved] Vigenere Cipher logic error
There are several problems with your code: You’re error checking isn’t correct. You check if(argc!=2||!apha) after you’ve already evaluated strlen(argv[1]) — by then it’s too late! Check the validity of argc before accessing argv and don’t double up the argument count error and alphabetic key error, they’re independent. Also, error messages should go to stderr, … Read more